	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_set_link
_qed_set_link:                          ## @qed_set_link
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	callq	_IS_VF
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qed_schedule_iov
	xorl	%eax, %eax
	jmp	LBB0_37
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_37
LBB0_5:
	movq	%r14, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_qed_mcp_get_link_params
	movl	(%rbx), %r9d
	movq	_QED_LINK_OVERRIDE_SPEED_AUTONEG@GOTPCREL(%rip), %rdx
	testl	%r9d, (%rdx)
	je	LBB0_9
## %bb.8:
	movl	28(%rbx), %edx
	movl	%edx, 28(%rax)
LBB0_9:
	movq	_QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS@GOTPCREL(%rip), %rdx
	testl	%r9d, (%rdx)
	je	LBB0_25
## %bb.10:
	movl	$0, 24(%rax)
	movq	_QED_LM_1000baseT_Full_BIT@GOTPCREL(%rip), %rdx
	movq	_QED_LM_1000baseKX_Full_BIT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	orl	(%rdx), %edi
	movq	_QED_LM_1000baseX_Full_BIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	movl	4(%rbx), %esi
	testl	%edi, %esi
	je	LBB0_11
## %bb.12:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax)
	jmp	LBB0_13
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	xorl	%edx, %edx
LBB0_13:
	movq	_QED_LM_10000baseT_Full_BIT@GOTPCREL(%rip), %r8
	movq	_QED_LM_10000baseKR_Full_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%r8), %edi
	movq	_QED_LM_10000baseKX4_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_10000baseR_FEC_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_10000baseCR_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_10000baseSR_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_10000baseLR_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_10000baseLRM_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	testl	%esi, %edi
	je	LBB0_15
## %bb.14:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_15:
	movq	_QED_LM_20000baseKR2_Full_BIT@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_17:
	movq	_QED_LM_25000baseKR_Full_BIT@GOTPCREL(%rip), %rcx
	movq	_QED_LM_25000baseCR_Full_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	movq	_QED_LM_25000baseSR_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	testl	%esi, %edi
	je	LBB0_19
## %bb.18:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_19:
	movq	_QED_LM_40000baseLR4_Full_BIT@GOTPCREL(%rip), %rcx
	movq	_QED_LM_40000baseKR4_Full_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	movq	_QED_LM_40000baseCR4_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_40000baseSR4_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	testl	%esi, %edi
	je	LBB0_21
## %bb.20:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_21:
	movq	_QED_LM_50000baseKR2_Full_BIT@GOTPCREL(%rip), %rcx
	movq	_QED_LM_50000baseCR2_Full_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	movq	_QED_LM_50000baseSR2_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	testl	%esi, %edi
	je	LBB0_23
## %bb.22:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_23:
	movq	_QED_LM_100000baseKR4_Full_BIT@GOTPCREL(%rip), %rcx
	movq	_QED_LM_100000baseSR4_Full_BIT@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rcx), %edi
	movq	_QED_LM_100000baseCR4_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	movq	_QED_LM_100000baseLR4_ER4_Full_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edi
	testl	%esi, %edi
	je	LBB0_25
## %bb.24:
	movq	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%rax)
LBB0_25:
	movq	_QED_LINK_OVERRIDE_SPEED_FORCED_SPEED@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_27
## %bb.26:
	movl	24(%rbx), %ecx
	movl	%ecx, 20(%rax)
LBB0_27:
	movq	_QED_LINK_OVERRIDE_PAUSE_CONFIG@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_29
## %bb.28:
	movl	8(%rbx), %ecx
	movq	_QED_LINK_PAUSE_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%ecx, %edx
	setne	%sil
	movl	%esi, 8(%rax)
	movq	_QED_LINK_PAUSE_RX_ENABLE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%ecx, %edx
	setne	%sil
	movl	%esi, 12(%rax)
	movq	_QED_LINK_PAUSE_TX_ENABLE@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	movl	%esi, 16(%rax)
LBB0_29:
	movq	_QED_LINK_OVERRIDE_LOOPBACK_MODE@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_34
## %bb.30:
	movl	12(%rbx), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_31
## %bb.32:
	movslq	%edx, %rcx
	leaq	l_switch.table.qed_set_link(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
	jmp	LBB0_33
LBB0_31:
	movq	_ETH_LOOPBACK_NONE@GOTPCREL(%rip), %rdx
LBB0_33:
	movl	(%rdx), %ecx
	movl	%ecx, 4(%rax)
LBB0_34:
	movq	_QED_LINK_OVERRIDE_EEE_CONFIG@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_36
## %bb.35:
	leaq	20(%rbx), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_36:
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_mcp_set_link
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_qed_ptt_release
	movl	%ebx, %eax
LBB0_37:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG,4,2 ## @QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_QED_LINK_OVERRIDE_SPEED_AUTONEG,4,2 ## @QED_LINK_OVERRIDE_SPEED_AUTONEG
	.comm	_QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS,4,2 ## @QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS
	.comm	_QED_LM_1000baseT_Full_BIT,4,2  ## @QED_LM_1000baseT_Full_BIT
	.comm	_QED_LM_1000baseKX_Full_BIT,4,2 ## @QED_LM_1000baseKX_Full_BIT
	.comm	_QED_LM_1000baseX_Full_BIT,4,2  ## @QED_LM_1000baseX_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G
	.comm	_QED_LM_10000baseT_Full_BIT,4,2 ## @QED_LM_10000baseT_Full_BIT
	.comm	_QED_LM_10000baseKR_Full_BIT,4,2 ## @QED_LM_10000baseKR_Full_BIT
	.comm	_QED_LM_10000baseKX4_Full_BIT,4,2 ## @QED_LM_10000baseKX4_Full_BIT
	.comm	_QED_LM_10000baseR_FEC_BIT,4,2  ## @QED_LM_10000baseR_FEC_BIT
	.comm	_QED_LM_10000baseCR_Full_BIT,4,2 ## @QED_LM_10000baseCR_Full_BIT
	.comm	_QED_LM_10000baseSR_Full_BIT,4,2 ## @QED_LM_10000baseSR_Full_BIT
	.comm	_QED_LM_10000baseLR_Full_BIT,4,2 ## @QED_LM_10000baseLR_Full_BIT
	.comm	_QED_LM_10000baseLRM_Full_BIT,4,2 ## @QED_LM_10000baseLRM_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G
	.comm	_QED_LM_20000baseKR2_Full_BIT,4,2 ## @QED_LM_20000baseKR2_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G
	.comm	_QED_LM_25000baseKR_Full_BIT,4,2 ## @QED_LM_25000baseKR_Full_BIT
	.comm	_QED_LM_25000baseCR_Full_BIT,4,2 ## @QED_LM_25000baseCR_Full_BIT
	.comm	_QED_LM_25000baseSR_Full_BIT,4,2 ## @QED_LM_25000baseSR_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G
	.comm	_QED_LM_40000baseLR4_Full_BIT,4,2 ## @QED_LM_40000baseLR4_Full_BIT
	.comm	_QED_LM_40000baseKR4_Full_BIT,4,2 ## @QED_LM_40000baseKR4_Full_BIT
	.comm	_QED_LM_40000baseCR4_Full_BIT,4,2 ## @QED_LM_40000baseCR4_Full_BIT
	.comm	_QED_LM_40000baseSR4_Full_BIT,4,2 ## @QED_LM_40000baseSR4_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G
	.comm	_QED_LM_50000baseKR2_Full_BIT,4,2 ## @QED_LM_50000baseKR2_Full_BIT
	.comm	_QED_LM_50000baseCR2_Full_BIT,4,2 ## @QED_LM_50000baseCR2_Full_BIT
	.comm	_QED_LM_50000baseSR2_Full_BIT,4,2 ## @QED_LM_50000baseSR2_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G
	.comm	_QED_LM_100000baseKR4_Full_BIT,4,2 ## @QED_LM_100000baseKR4_Full_BIT
	.comm	_QED_LM_100000baseSR4_Full_BIT,4,2 ## @QED_LM_100000baseSR4_Full_BIT
	.comm	_QED_LM_100000baseCR4_Full_BIT,4,2 ## @QED_LM_100000baseCR4_Full_BIT
	.comm	_QED_LM_100000baseLR4_ER4_Full_BIT,4,2 ## @QED_LM_100000baseLR4_ER4_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G,4,2 ## @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G
	.comm	_QED_LINK_OVERRIDE_SPEED_FORCED_SPEED,4,2 ## @QED_LINK_OVERRIDE_SPEED_FORCED_SPEED
	.comm	_QED_LINK_OVERRIDE_PAUSE_CONFIG,4,2 ## @QED_LINK_OVERRIDE_PAUSE_CONFIG
	.comm	_QED_LINK_PAUSE_AUTONEG_ENABLE,4,2 ## @QED_LINK_PAUSE_AUTONEG_ENABLE
	.comm	_QED_LINK_PAUSE_RX_ENABLE,4,2   ## @QED_LINK_PAUSE_RX_ENABLE
	.comm	_QED_LINK_PAUSE_TX_ENABLE,4,2   ## @QED_LINK_PAUSE_TX_ENABLE
	.comm	_QED_LINK_OVERRIDE_LOOPBACK_MODE,4,2 ## @QED_LINK_OVERRIDE_LOOPBACK_MODE
	.comm	_ETH_LOOPBACK_INT_PHY,4,2       ## @ETH_LOOPBACK_INT_PHY
	.comm	_ETH_LOOPBACK_EXT_PHY,4,2       ## @ETH_LOOPBACK_EXT_PHY
	.comm	_ETH_LOOPBACK_EXT,4,2           ## @ETH_LOOPBACK_EXT
	.comm	_ETH_LOOPBACK_MAC,4,2           ## @ETH_LOOPBACK_MAC
	.comm	_ETH_LOOPBACK_NONE,4,2          ## @ETH_LOOPBACK_NONE
	.comm	_QED_LINK_OVERRIDE_EEE_CONFIG,4,2 ## @QED_LINK_OVERRIDE_EEE_CONFIG
	.no_dead_strip	_qed_set_link
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_set_link
l_switch.table.qed_set_link:
	.quad	_ETH_LOOPBACK_MAC
	.quad	_ETH_LOOPBACK_INT_PHY
	.quad	_ETH_LOOPBACK_EXT_PHY
	.quad	_ETH_LOOPBACK_EXT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_set_link
_qed_set_link:                          ; @qed_set_link
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	x19, [x0]
	bl	_IS_VF
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qed_schedule_iov
	mov	w0, #0
	b	LBB0_37
LBB0_3:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_37
LBB0_5:
	mov	x0, x19
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
	mov	x0, x19
	bl	_qed_mcp_get_link_params
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _QED_LINK_OVERRIDE_SPEED_AUTONEG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_SPEED_AUTONEG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x20, #28]
	str	w9, [x0, #28]
LBB0_8:
Lloh8:
	adrp	x9, _QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.9:
Lloh11:
	adrp	x9, _QED_LM_1000baseT_Full_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _QED_LM_1000baseT_Full_BIT@GOTPAGEOFF]
	str	wzr, [x0, #24]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _QED_LM_1000baseKX_Full_BIT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _QED_LM_1000baseKX_Full_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh17:
	adrp	x10, _QED_LM_1000baseX_Full_BIT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _QED_LM_1000baseX_Full_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w10, w9, w10
	ldr	w9, [x20, #4]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.10:
Lloh20:
	adrp	x10, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G@GOTPAGE
Lloh21:
	ldr	x10, [x10, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	str	w10, [x0, #24]
	b	LBB0_13
LBB0_11:
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	mov	w10, #0
LBB0_13:
Lloh25:
	adrp	x11, _QED_LM_10000baseT_Full_BIT@GOTPAGE
Lloh26:
	ldr	x11, [x11, _QED_LM_10000baseT_Full_BIT@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
Lloh28:
	adrp	x12, _QED_LM_10000baseKR_Full_BIT@GOTPAGE
Lloh29:
	ldr	x12, [x12, _QED_LM_10000baseKR_Full_BIT@GOTPAGEOFF]
Lloh30:
	ldr	w12, [x12]
Lloh31:
	adrp	x13, _QED_LM_10000baseKX4_Full_BIT@GOTPAGE
Lloh32:
	ldr	x13, [x13, _QED_LM_10000baseKX4_Full_BIT@GOTPAGEOFF]
	orr	w11, w12, w11
Lloh33:
	ldr	w12, [x13]
	orr	w11, w11, w12
Lloh34:
	adrp	x12, _QED_LM_10000baseR_FEC_BIT@GOTPAGE
Lloh35:
	ldr	x12, [x12, _QED_LM_10000baseR_FEC_BIT@GOTPAGEOFF]
Lloh36:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh37:
	adrp	x12, _QED_LM_10000baseCR_Full_BIT@GOTPAGE
Lloh38:
	ldr	x12, [x12, _QED_LM_10000baseCR_Full_BIT@GOTPAGEOFF]
Lloh39:
	ldr	w12, [x12]
Lloh40:
	adrp	x13, _QED_LM_10000baseSR_Full_BIT@GOTPAGE
Lloh41:
	ldr	x13, [x13, _QED_LM_10000baseSR_Full_BIT@GOTPAGEOFF]
	orr	w11, w11, w12
Lloh42:
	ldr	w12, [x13]
	orr	w11, w11, w12
Lloh43:
	adrp	x12, _QED_LM_10000baseLR_Full_BIT@GOTPAGE
Lloh44:
	ldr	x12, [x12, _QED_LM_10000baseLR_Full_BIT@GOTPAGEOFF]
Lloh45:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh46:
	adrp	x12, _QED_LM_10000baseLRM_Full_BIT@GOTPAGE
Lloh47:
	ldr	x12, [x12, _QED_LM_10000baseLRM_Full_BIT@GOTPAGEOFF]
Lloh48:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w11, w9
	b.eq	LBB0_15
; %bb.14:
Lloh49:
	adrp	x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G@GOTPAGE
Lloh50:
	ldr	x11, [x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G@GOTPAGEOFF]
Lloh51:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #24]
LBB0_15:
Lloh52:
	adrp	x11, _QED_LM_20000baseKR2_Full_BIT@GOTPAGE
Lloh53:
	ldr	x11, [x11, _QED_LM_20000baseKR2_Full_BIT@GOTPAGEOFF]
Lloh54:
	ldr	w11, [x11]
	tst	w11, w9
	b.eq	LBB0_17
; %bb.16:
Lloh55:
	adrp	x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G@GOTPAGE
Lloh56:
	ldr	x11, [x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #24]
LBB0_17:
Lloh58:
	adrp	x11, _QED_LM_25000baseKR_Full_BIT@GOTPAGE
Lloh59:
	ldr	x11, [x11, _QED_LM_25000baseKR_Full_BIT@GOTPAGEOFF]
Lloh60:
	ldr	w11, [x11]
Lloh61:
	adrp	x12, _QED_LM_25000baseCR_Full_BIT@GOTPAGE
Lloh62:
	ldr	x12, [x12, _QED_LM_25000baseCR_Full_BIT@GOTPAGEOFF]
Lloh63:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh64:
	adrp	x12, _QED_LM_25000baseSR_Full_BIT@GOTPAGE
Lloh65:
	ldr	x12, [x12, _QED_LM_25000baseSR_Full_BIT@GOTPAGEOFF]
Lloh66:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w11, w9
	b.eq	LBB0_19
; %bb.18:
Lloh67:
	adrp	x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G@GOTPAGE
Lloh68:
	ldr	x11, [x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G@GOTPAGEOFF]
Lloh69:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #24]
LBB0_19:
Lloh70:
	adrp	x11, _QED_LM_40000baseLR4_Full_BIT@GOTPAGE
Lloh71:
	ldr	x11, [x11, _QED_LM_40000baseLR4_Full_BIT@GOTPAGEOFF]
Lloh72:
	adrp	x12, _QED_LM_40000baseKR4_Full_BIT@GOTPAGE
Lloh73:
	ldr	x12, [x12, _QED_LM_40000baseKR4_Full_BIT@GOTPAGEOFF]
Lloh74:
	ldr	w11, [x11]
Lloh75:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh76:
	adrp	x12, _QED_LM_40000baseCR4_Full_BIT@GOTPAGE
Lloh77:
	ldr	x12, [x12, _QED_LM_40000baseCR4_Full_BIT@GOTPAGEOFF]
Lloh78:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh79:
	adrp	x12, _QED_LM_40000baseSR4_Full_BIT@GOTPAGE
Lloh80:
	ldr	x12, [x12, _QED_LM_40000baseSR4_Full_BIT@GOTPAGEOFF]
Lloh81:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w11, w9
	b.eq	LBB0_21
; %bb.20:
Lloh82:
	adrp	x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G@GOTPAGE
Lloh83:
	ldr	x11, [x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G@GOTPAGEOFF]
Lloh84:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #24]
LBB0_21:
Lloh85:
	adrp	x11, _QED_LM_50000baseKR2_Full_BIT@GOTPAGE
Lloh86:
	ldr	x11, [x11, _QED_LM_50000baseKR2_Full_BIT@GOTPAGEOFF]
Lloh87:
	ldr	w11, [x11]
Lloh88:
	adrp	x12, _QED_LM_50000baseCR2_Full_BIT@GOTPAGE
Lloh89:
	ldr	x12, [x12, _QED_LM_50000baseCR2_Full_BIT@GOTPAGEOFF]
Lloh90:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh91:
	adrp	x12, _QED_LM_50000baseSR2_Full_BIT@GOTPAGE
Lloh92:
	ldr	x12, [x12, _QED_LM_50000baseSR2_Full_BIT@GOTPAGEOFF]
Lloh93:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w11, w9
	b.eq	LBB0_23
; %bb.22:
Lloh94:
	adrp	x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G@GOTPAGE
Lloh95:
	ldr	x11, [x11, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G@GOTPAGEOFF]
Lloh96:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x0, #24]
LBB0_23:
Lloh97:
	adrp	x11, _QED_LM_100000baseKR4_Full_BIT@GOTPAGE
Lloh98:
	ldr	x11, [x11, _QED_LM_100000baseKR4_Full_BIT@GOTPAGEOFF]
Lloh99:
	adrp	x12, _QED_LM_100000baseSR4_Full_BIT@GOTPAGE
Lloh100:
	ldr	x12, [x12, _QED_LM_100000baseSR4_Full_BIT@GOTPAGEOFF]
Lloh101:
	ldr	w11, [x11]
Lloh102:
	ldr	w12, [x12]
	orr	w11, w12, w11
Lloh103:
	adrp	x12, _QED_LM_100000baseCR4_Full_BIT@GOTPAGE
Lloh104:
	ldr	x12, [x12, _QED_LM_100000baseCR4_Full_BIT@GOTPAGEOFF]
Lloh105:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh106:
	adrp	x12, _QED_LM_100000baseLR4_ER4_Full_BIT@GOTPAGE
Lloh107:
	ldr	x12, [x12, _QED_LM_100000baseLR4_ER4_Full_BIT@GOTPAGEOFF]
Lloh108:
	ldr	w12, [x12]
	orr	w11, w11, w12
	tst	w11, w9
	b.eq	LBB0_25
; %bb.24:
Lloh109:
	adrp	x9, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G@GOTPAGE
Lloh110:
	ldr	x9, [x9, _NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G@GOTPAGEOFF]
Lloh111:
	ldr	w9, [x9]
	orr	w9, w10, w9
	str	w9, [x0, #24]
LBB0_25:
Lloh112:
	adrp	x9, _QED_LINK_OVERRIDE_SPEED_FORCED_SPEED@GOTPAGE
Lloh113:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_SPEED_FORCED_SPEED@GOTPAGEOFF]
Lloh114:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.26:
	ldr	w9, [x20, #24]
	str	w9, [x0, #20]
LBB0_27:
Lloh115:
	adrp	x9, _QED_LINK_OVERRIDE_PAUSE_CONFIG@GOTPAGE
Lloh116:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_PAUSE_CONFIG@GOTPAGEOFF]
Lloh117:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	w9, [x20, #8]
Lloh118:
	adrp	x10, _QED_LINK_PAUSE_AUTONEG_ENABLE@GOTPAGE
Lloh119:
	ldr	x10, [x10, _QED_LINK_PAUSE_AUTONEG_ENABLE@GOTPAGEOFF]
Lloh120:
	ldr	w10, [x10]
	tst	w10, w9
Lloh121:
	adrp	x10, _QED_LINK_PAUSE_RX_ENABLE@GOTPAGE
Lloh122:
	ldr	x10, [x10, _QED_LINK_PAUSE_RX_ENABLE@GOTPAGEOFF]
	cset	w11, ne
Lloh123:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w10, ne
	stp	w11, w10, [x0, #8]
Lloh124:
	adrp	x10, _QED_LINK_PAUSE_TX_ENABLE@GOTPAGE
Lloh125:
	ldr	x10, [x10, _QED_LINK_PAUSE_TX_ENABLE@GOTPAGEOFF]
Lloh126:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	str	w9, [x0, #16]
LBB0_29:
Lloh127:
	adrp	x9, _QED_LINK_OVERRIDE_LOOPBACK_MODE@GOTPAGE
Lloh128:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_LOOPBACK_MODE@GOTPAGEOFF]
Lloh129:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.30:
	ldr	w9, [x20, #12]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_32
; %bb.31:
Lloh130:
	adrp	x10, l_switch.table.qed_set_link@PAGE
Lloh131:
	add	x10, x10, l_switch.table.qed_set_link@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	b	LBB0_33
LBB0_32:
Lloh132:
	adrp	x9, _ETH_LOOPBACK_NONE@GOTPAGE
Lloh133:
	ldr	x9, [x9, _ETH_LOOPBACK_NONE@GOTPAGEOFF]
LBB0_33:
	ldr	w9, [x9]
	str	w9, [x0, #4]
LBB0_34:
Lloh134:
	adrp	x9, _QED_LINK_OVERRIDE_EEE_CONFIG@GOTPAGE
Lloh135:
	ldr	x9, [x9, _QED_LINK_OVERRIDE_EEE_CONFIG@GOTPAGEOFF]
Lloh136:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
	add	x1, x20, #20
	mov	w2, #4
	bl	_memcpy
LBB0_36:
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_qed_mcp_set_link
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_qed_ptt_release
	mov	x0, x20
LBB0_37:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh74
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh101
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpLdrGot	Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG,4,2 ; @QED_IOV_WQ_VF_FORCE_LINK_QUERY_FLAG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_QED_LINK_OVERRIDE_SPEED_AUTONEG,4,2 ; @QED_LINK_OVERRIDE_SPEED_AUTONEG
	.comm	_QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS,4,2 ; @QED_LINK_OVERRIDE_SPEED_ADV_SPEEDS
	.comm	_QED_LM_1000baseT_Full_BIT,4,2  ; @QED_LM_1000baseT_Full_BIT
	.comm	_QED_LM_1000baseKX_Full_BIT,4,2 ; @QED_LM_1000baseKX_Full_BIT
	.comm	_QED_LM_1000baseX_Full_BIT,4,2  ; @QED_LM_1000baseX_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_1G
	.comm	_QED_LM_10000baseT_Full_BIT,4,2 ; @QED_LM_10000baseT_Full_BIT
	.comm	_QED_LM_10000baseKR_Full_BIT,4,2 ; @QED_LM_10000baseKR_Full_BIT
	.comm	_QED_LM_10000baseKX4_Full_BIT,4,2 ; @QED_LM_10000baseKX4_Full_BIT
	.comm	_QED_LM_10000baseR_FEC_BIT,4,2  ; @QED_LM_10000baseR_FEC_BIT
	.comm	_QED_LM_10000baseCR_Full_BIT,4,2 ; @QED_LM_10000baseCR_Full_BIT
	.comm	_QED_LM_10000baseSR_Full_BIT,4,2 ; @QED_LM_10000baseSR_Full_BIT
	.comm	_QED_LM_10000baseLR_Full_BIT,4,2 ; @QED_LM_10000baseLR_Full_BIT
	.comm	_QED_LM_10000baseLRM_Full_BIT,4,2 ; @QED_LM_10000baseLRM_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_10G
	.comm	_QED_LM_20000baseKR2_Full_BIT,4,2 ; @QED_LM_20000baseKR2_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_20G
	.comm	_QED_LM_25000baseKR_Full_BIT,4,2 ; @QED_LM_25000baseKR_Full_BIT
	.comm	_QED_LM_25000baseCR_Full_BIT,4,2 ; @QED_LM_25000baseCR_Full_BIT
	.comm	_QED_LM_25000baseSR_Full_BIT,4,2 ; @QED_LM_25000baseSR_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_25G
	.comm	_QED_LM_40000baseLR4_Full_BIT,4,2 ; @QED_LM_40000baseLR4_Full_BIT
	.comm	_QED_LM_40000baseKR4_Full_BIT,4,2 ; @QED_LM_40000baseKR4_Full_BIT
	.comm	_QED_LM_40000baseCR4_Full_BIT,4,2 ; @QED_LM_40000baseCR4_Full_BIT
	.comm	_QED_LM_40000baseSR4_Full_BIT,4,2 ; @QED_LM_40000baseSR4_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_40G
	.comm	_QED_LM_50000baseKR2_Full_BIT,4,2 ; @QED_LM_50000baseKR2_Full_BIT
	.comm	_QED_LM_50000baseCR2_Full_BIT,4,2 ; @QED_LM_50000baseCR2_Full_BIT
	.comm	_QED_LM_50000baseSR2_Full_BIT,4,2 ; @QED_LM_50000baseSR2_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_50G
	.comm	_QED_LM_100000baseKR4_Full_BIT,4,2 ; @QED_LM_100000baseKR4_Full_BIT
	.comm	_QED_LM_100000baseSR4_Full_BIT,4,2 ; @QED_LM_100000baseSR4_Full_BIT
	.comm	_QED_LM_100000baseCR4_Full_BIT,4,2 ; @QED_LM_100000baseCR4_Full_BIT
	.comm	_QED_LM_100000baseLR4_ER4_Full_BIT,4,2 ; @QED_LM_100000baseLR4_ER4_Full_BIT
	.comm	_NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G,4,2 ; @NVM_CFG1_PORT_DRV_SPEED_CAPABILITY_MASK_BB_100G
	.comm	_QED_LINK_OVERRIDE_SPEED_FORCED_SPEED,4,2 ; @QED_LINK_OVERRIDE_SPEED_FORCED_SPEED
	.comm	_QED_LINK_OVERRIDE_PAUSE_CONFIG,4,2 ; @QED_LINK_OVERRIDE_PAUSE_CONFIG
	.comm	_QED_LINK_PAUSE_AUTONEG_ENABLE,4,2 ; @QED_LINK_PAUSE_AUTONEG_ENABLE
	.comm	_QED_LINK_PAUSE_RX_ENABLE,4,2   ; @QED_LINK_PAUSE_RX_ENABLE
	.comm	_QED_LINK_PAUSE_TX_ENABLE,4,2   ; @QED_LINK_PAUSE_TX_ENABLE
	.comm	_QED_LINK_OVERRIDE_LOOPBACK_MODE,4,2 ; @QED_LINK_OVERRIDE_LOOPBACK_MODE
	.comm	_ETH_LOOPBACK_INT_PHY,4,2       ; @ETH_LOOPBACK_INT_PHY
	.comm	_ETH_LOOPBACK_EXT_PHY,4,2       ; @ETH_LOOPBACK_EXT_PHY
	.comm	_ETH_LOOPBACK_EXT,4,2           ; @ETH_LOOPBACK_EXT
	.comm	_ETH_LOOPBACK_MAC,4,2           ; @ETH_LOOPBACK_MAC
	.comm	_ETH_LOOPBACK_NONE,4,2          ; @ETH_LOOPBACK_NONE
	.comm	_QED_LINK_OVERRIDE_EEE_CONFIG,4,2 ; @QED_LINK_OVERRIDE_EEE_CONFIG
	.no_dead_strip	_qed_set_link
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_set_link
l_switch.table.qed_set_link:
	.quad	_ETH_LOOPBACK_MAC
	.quad	_ETH_LOOPBACK_INT_PHY
	.quad	_ETH_LOOPBACK_EXT_PHY
	.quad	_ETH_LOOPBACK_EXT

.subsections_via_symbols
