	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_get_link_speed_based_on_phy_type
_ice_get_link_speed_based_on_phy_type:  ## @ice_get_link_speed_based_on_phy_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %edi
	movq	_ICE_AQ_LINK_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movq	%rax, %rcx
	cmpl	$63, %edi
	ja	LBB0_2
## %bb.1:
	movslq	%edi, %rcx
	leaq	l_switch.table.ice_get_link_speed_based_on_phy_type(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
LBB0_2:
	movq	(%rcx), %rcx
	addl	$-192, %esi
	movq	(%rax), %rdx
	movq	%rdx, %rax
	cmpl	$5, %esi
	jae	LBB0_4
## %bb.3:
	movq	_ICE_AQ_LINK_SPEED_100GB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	cmpq	%rdx, %rax
	movq	%rax, %rsi
	cmoveq	%rcx, %rsi
	cmpq	%rdx, %rcx
	cmoveq	%rax, %rsi
	cmpq	%rdx, %rax
	movq	%rdx, %rdi
	cmoveq	%rsi, %rdi
	cmpq	%rdx, %rcx
	cmoveq	%rsi, %rdi
	cmpq	%rdx, %rax
	movq	%rdi, %rax
	cmoveq	%rdx, %rax
	cmpq	%rdx, %rcx
	cmovneq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_AQ_LINK_SPEED_UNKNOWN,8,3  ## @ICE_AQ_LINK_SPEED_UNKNOWN
	.comm	_ICE_AQ_LINK_SPEED_100MB,8,3    ## @ICE_AQ_LINK_SPEED_100MB
	.comm	_ICE_AQ_LINK_SPEED_1000MB,8,3   ## @ICE_AQ_LINK_SPEED_1000MB
	.comm	_ICE_AQ_LINK_SPEED_2500MB,8,3   ## @ICE_AQ_LINK_SPEED_2500MB
	.comm	_ICE_AQ_LINK_SPEED_5GB,8,3      ## @ICE_AQ_LINK_SPEED_5GB
	.comm	_ICE_AQ_LINK_SPEED_10GB,8,3     ## @ICE_AQ_LINK_SPEED_10GB
	.comm	_ICE_AQ_LINK_SPEED_25GB,8,3     ## @ICE_AQ_LINK_SPEED_25GB
	.comm	_ICE_AQ_LINK_SPEED_40GB,8,3     ## @ICE_AQ_LINK_SPEED_40GB
	.comm	_ICE_AQ_LINK_SPEED_50GB,8,3     ## @ICE_AQ_LINK_SPEED_50GB
	.comm	_ICE_AQ_LINK_SPEED_100GB,8,3    ## @ICE_AQ_LINK_SPEED_100GB
	.no_dead_strip	_ice_get_link_speed_based_on_phy_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ice_get_link_speed_based_on_phy_type
l_switch.table.ice_get_link_speed_based_on_phy_type:
	.quad	_ICE_AQ_LINK_SPEED_5GB
	.quad	_ICE_AQ_LINK_SPEED_5GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_100MB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_get_link_speed_based_on_phy_type
_ice_get_link_speed_based_on_phy_type:  ; @ice_get_link_speed_based_on_phy_type
	.cfi_startproc
; %bb.0:
	sub	w9, w0, #128
Lloh0:
	adrp	x8, _ICE_AQ_LINK_SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE_AQ_LINK_SPEED_UNKNOWN@GOTPAGEOFF]
	mov	x10, x8
	cmp	w9, #63
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x10, l_switch.table.ice_get_link_speed_based_on_phy_type@PAGE
Lloh3:
	add	x10, x10, l_switch.table.ice_get_link_speed_based_on_phy_type@PAGEOFF
	ldr	x10, [x10, w9, sxtw #3]
LBB0_2:
	ldr	x9, [x10]
	sub	w10, w1, #192
Lloh4:
	adrp	x11, _ICE_AQ_LINK_SPEED_100GB@GOTPAGE
Lloh5:
	ldr	x11, [x11, _ICE_AQ_LINK_SPEED_100GB@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
	ldr	x8, [x8]
	cmp	w10, #5
	csel	x10, x11, x8, lo
	cmp	x10, x8
	cset	w11, eq
	cmp	x9, x8
	cset	w12, eq
	and	w13, w12, w11
	orr	w12, w12, w11
	cset	w14, ne
	tst	w14, w11
	csel	x9, x9, x10, ne
	bics	wzr, w12, w13
	csel	x0, x9, x8, ne
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_AQ_LINK_SPEED_UNKNOWN,8,3  ; @ICE_AQ_LINK_SPEED_UNKNOWN
	.comm	_ICE_AQ_LINK_SPEED_100MB,8,3    ; @ICE_AQ_LINK_SPEED_100MB
	.comm	_ICE_AQ_LINK_SPEED_1000MB,8,3   ; @ICE_AQ_LINK_SPEED_1000MB
	.comm	_ICE_AQ_LINK_SPEED_2500MB,8,3   ; @ICE_AQ_LINK_SPEED_2500MB
	.comm	_ICE_AQ_LINK_SPEED_5GB,8,3      ; @ICE_AQ_LINK_SPEED_5GB
	.comm	_ICE_AQ_LINK_SPEED_10GB,8,3     ; @ICE_AQ_LINK_SPEED_10GB
	.comm	_ICE_AQ_LINK_SPEED_25GB,8,3     ; @ICE_AQ_LINK_SPEED_25GB
	.comm	_ICE_AQ_LINK_SPEED_40GB,8,3     ; @ICE_AQ_LINK_SPEED_40GB
	.comm	_ICE_AQ_LINK_SPEED_50GB,8,3     ; @ICE_AQ_LINK_SPEED_50GB
	.comm	_ICE_AQ_LINK_SPEED_100GB,8,3    ; @ICE_AQ_LINK_SPEED_100GB
	.no_dead_strip	_ice_get_link_speed_based_on_phy_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ice_get_link_speed_based_on_phy_type
l_switch.table.ice_get_link_speed_based_on_phy_type:
	.quad	_ICE_AQ_LINK_SPEED_5GB
	.quad	_ICE_AQ_LINK_SPEED_5GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_50GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_40GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_25GB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_2500MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_10GB
	.quad	_ICE_AQ_LINK_SPEED_100MB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100GB
	.quad	_ICE_AQ_LINK_SPEED_100MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB
	.quad	_ICE_AQ_LINK_SPEED_1000MB

.subsections_via_symbols
