	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_link_info          ## -- Begin function i40e_aq_get_link_info
	.p2align	4, 0x90
_i40e_aq_get_link_info:                 ## @i40e_aq_get_link_info
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	_i40e_aqc_opc_get_link_status@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_i40e_fill_default_direct_cmd_desc
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_I40E_AQ_LSE_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_I40E_AQ_LSE_ENABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -48(%rbp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_i40e_asq_send_command
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_23
## %bb.4:
	movups	60(%r13), %xmm0
	movups	76(%r13), %xmm1
	movups	88(%r13), %xmm2
	movups	%xmm2, 44(%r13)
	movups	%xmm1, 32(%r13)
	movups	%xmm0, 16(%r13)
	movl	(%rbp), %eax
	movl	%eax, 60(%r13)
	movq	%r13, %rdi
	callq	_i40e_get_media_type
	movl	%eax, 12(%r13)
	movl	-8(%rbp), %eax
	movl	%eax, 64(%r13)
	movl	-12(%rbp), %eax
	movl	%eax, 100(%r13)
	movl	-44(%rbp), %eax
	movl	%eax, 68(%r13)
	movq	_I40E_AQ_CONFIG_FEC_KR_ENA@GOTPCREL(%rip), %rax
	movq	_I40E_AQ_CONFIG_FEC_RS_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	-40(%rbp), %ecx
	movl	%ecx, 72(%r13)
	movl	-16(%rbp), %eax
	movl	%eax, 96(%r13)
	movq	_I40E_AQ_LOOPBACK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movl	%eax, 76(%r13)
	movl	-20(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, 92(%r13)
	movl	-40(%rbp), %eax
	movq	_I40E_AQ_CONFIG_PACING_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, 80(%r13)
	movl	-44(%rbp), %edx
	movq	_I40E_AQ_LINK_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edx, %ecx
	movq	_I40E_AQ_LINK_PAUSE_RX@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	je	LBB0_5
## %bb.6:
	movq	_I40E_FC_RX_PAUSE@GOTPCREL(%rip), %rsi
	testl	%ecx, %ecx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	movq	_I40E_FC_NONE@GOTPCREL(%rip), %rsi
	testl	%ecx, %ecx
	je	LBB0_9
LBB0_8:
	movq	_I40E_FC_TX_PAUSE@GOTPCREL(%rip), %rsi
LBB0_9:
	movl	(%rsi), %esi
	movl	%esi, %edi
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:
	movq	_I40E_FC_FULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_11:
	testl	%ecx, %ecx
	cmovnel	%edi, %esi
	leaq	60(%r13), %r12
	movl	%esi, 120(%r13)
	movq	_I40E_AQ_CONFIG_CRC_ENA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 84(%r13)
	movl	-48(%rbp), %ebx
	movq	_I40E_AQ_LSE_IS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, 88(%r13)
	movq	104(%r13), %rax
	movq	_I40E_MAC_XL710@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.12:
	cmpl	$4, 112(%r13)
	jl	LBB0_15
## %bb.13:
	jne	LBB0_17
## %bb.14:
	cmpl	$39, 116(%r13)
	jg	LBB0_17
LBB0_15:
	cmpl	$14, (%r12)
	jne	LBB0_17
## %bb.16:
	movq	_I40E_PHY_TYPE_10GBASE_SFPP_CU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r12)
LBB0_17:
	movq	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r13)
	je	LBB0_20
## %bb.18:
	movq	_I40E_MAC_X722@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.19:
	movl	-24(%rbp), %esi
	leaq	-52(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-52(%rbp), %edi
	callq	_le32_to_cpu
LBB0_20:
	testq	%r14, %r14
	je	LBB0_22
## %bb.21:
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	28(%r12), %xmm2
	movups	%xmm2, 28(%r14)
	movups	%xmm1, 16(%r14)
	movups	%xmm0, (%r14)
LBB0_22:
	movl	$0, 8(%r13)
LBB0_23:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i40e_aqc_opc_get_link_status,4,2 ## @i40e_aqc_opc_get_link_status
	.comm	_I40E_AQ_LSE_ENABLE,4,2         ## @I40E_AQ_LSE_ENABLE
	.comm	_I40E_AQ_LSE_DISABLE,4,2        ## @I40E_AQ_LSE_DISABLE
	.comm	_I40E_AQ_CONFIG_FEC_KR_ENA,4,2  ## @I40E_AQ_CONFIG_FEC_KR_ENA
	.comm	_I40E_AQ_CONFIG_FEC_RS_ENA,4,2  ## @I40E_AQ_CONFIG_FEC_RS_ENA
	.comm	_I40E_AQ_LOOPBACK_MASK,4,2      ## @I40E_AQ_LOOPBACK_MASK
	.comm	_I40E_AQ_CONFIG_PACING_MASK,4,2 ## @I40E_AQ_CONFIG_PACING_MASK
	.comm	_I40E_AQ_LINK_PAUSE_TX,4,2      ## @I40E_AQ_LINK_PAUSE_TX
	.comm	_I40E_AQ_LINK_PAUSE_RX,4,2      ## @I40E_AQ_LINK_PAUSE_RX
	.comm	_I40E_FC_FULL,4,2               ## @I40E_FC_FULL
	.comm	_I40E_FC_TX_PAUSE,4,2           ## @I40E_FC_TX_PAUSE
	.comm	_I40E_FC_RX_PAUSE,4,2           ## @I40E_FC_RX_PAUSE
	.comm	_I40E_FC_NONE,4,2               ## @I40E_FC_NONE
	.comm	_I40E_AQ_CONFIG_CRC_ENA,4,2     ## @I40E_AQ_CONFIG_CRC_ENA
	.comm	_I40E_AQ_LSE_IS_ENABLED,4,2     ## @I40E_AQ_LSE_IS_ENABLED
	.comm	_I40E_MAC_XL710,8,3             ## @I40E_MAC_XL710
	.comm	_I40E_PHY_TYPE_10GBASE_SFPP_CU,4,2 ## @I40E_PHY_TYPE_10GBASE_SFPP_CU
	.comm	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE,4,2 ## @I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE
	.comm	_I40E_MAC_X722,8,3              ## @I40E_MAC_X722
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40e_aq_get_link_info          ; -- Begin function i40e_aq_get_link_info
	.p2align	2
_i40e_aq_get_link_info:                 ; @i40e_aq_get_link_info
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _i40e_aqc_opc_get_link_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i40e_aqc_opc_get_link_status@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_i40e_fill_default_direct_cmd_desc
Lloh3:
	adrp	x8, _I40E_AQ_LSE_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40E_AQ_LSE_DISABLE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _I40E_AQ_LSE_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I40E_AQ_LSE_ENABLE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_i40e_asq_send_command
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.1:
	ldur	q0, [x19, #60]
	ldur	q1, [x19, #76]
	stp	q0, q1, [x19, #16]
	ldur	q0, [x19, #88]
	stur	q0, [x19, #44]
	ldr	x8, [sp, #56]
	str	w8, [x19, #60]
	mov	x0, x19
	bl	_i40e_get_media_type
	str	w0, [x19, #12]
	ldr	x8, [sp, #48]
	ldp	w9, w10, [sp, #12]
	stp	w8, w9, [x19, #64]
Lloh7:
	adrp	x8, _I40E_AQ_CONFIG_FEC_KR_ENA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40E_AQ_CONFIG_FEC_KR_ENA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _I40E_AQ_CONFIG_FEC_RS_ENA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I40E_AQ_CONFIG_FEC_RS_ENA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w8, w8, w10
Lloh13:
	adrp	x9, _I40E_AQ_LOOPBACK_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I40E_AQ_LOOPBACK_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [sp, #20]
	ldr	w0, [sp, #36]
	and	w9, w9, w10
	ldr	d0, [sp, #40]
	str	d0, [x19, #96]
	stp	w8, w9, [x19, #72]
	bl	_le16_to_cpu
Lloh16:
	adrp	x8, _I40E_AQ_LINK_PAUSE_TX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40E_AQ_LINK_PAUSE_TX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _I40E_AQ_LINK_PAUSE_RX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _I40E_AQ_LINK_PAUSE_RX@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _I40E_FC_RX_PAUSE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _I40E_FC_RX_PAUSE@GOTPAGEOFF]
Lloh24:
	adrp	x11, _I40E_FC_NONE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _I40E_FC_NONE@GOTPAGEOFF]
	ldp	w23, w12, [sp, #8]
	tst	w9, w12
	csel	x10, x10, x11, ne
Lloh26:
	adrp	x11, _I40E_FC_TX_PAUSE@GOTPAGE
Lloh27:
	ldr	x11, [x11, _I40E_FC_TX_PAUSE@GOTPAGEOFF]
	ands	w8, w8, w12
	csel	x10, x11, x10, ne
	tst	w9, w12
	add	x22, x19, #60
	str	w0, [x19, #92]
	ldr	w9, [sp, #16]
Lloh28:
	adrp	x11, _I40E_AQ_CONFIG_PACING_MASK@GOTPAGE
Lloh29:
	ldr	x11, [x11, _I40E_AQ_CONFIG_PACING_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	and	w11, w11, w9
	str	w11, [x19, #80]
	ccmp	w8, #0, #4, ne
Lloh31:
	adrp	x8, _I40E_FC_FULL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _I40E_FC_FULL@GOTPAGEOFF]
	csel	x8, x8, x10, ne
	ldr	w8, [x8]
	str	w8, [x19, #120]
Lloh33:
	adrp	x8, _I40E_AQ_CONFIG_CRC_ENA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _I40E_AQ_CONFIG_CRC_ENA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	str	w8, [x19, #84]
Lloh36:
	adrp	x8, _I40E_AQ_LSE_IS_ENABLED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I40E_AQ_LSE_IS_ENABLED@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	tst	w0, w23
	cset	w8, ne
	str	w8, [x19, #88]
	ldr	x8, [x19, #104]
Lloh39:
	adrp	x9, _I40E_MAC_XL710@GOTPAGE
Lloh40:
	ldr	x9, [x9, _I40E_MAC_XL710@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w9, [x19, #112]
	cmp	w9, #4
	b.lt	LBB0_5
; %bb.3:
	b.ne	LBB0_7
; %bb.4:
	ldr	w9, [x19, #116]
	cmp	w9, #39
	b.gt	LBB0_7
LBB0_5:
	ldr	w9, [x22]
	cmp	w9, #14
	b.ne	LBB0_7
; %bb.6:
Lloh42:
	adrp	x9, _I40E_PHY_TYPE_10GBASE_SFPP_CU@GOTPAGE
Lloh43:
	ldr	x9, [x9, _I40E_PHY_TYPE_10GBASE_SFPP_CU@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	str	w9, [x22]
LBB0_7:
	ldr	w9, [x19]
Lloh45:
	adrp	x10, _I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPAGE
Lloh46:
	ldr	x10, [x10, _I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.8:
Lloh48:
	adrp	x9, _I40E_MAC_X722@GOTPAGE
Lloh49:
	ldr	x9, [x9, _I40E_MAC_X722@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [sp, #32]
	add	x0, sp, #4
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #4]
	bl	_le32_to_cpu
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	ldp	q0, q1, [x22]
	ldur	q2, [x22, #28]
	stur	q2, [x20, #28]
	stp	q0, q1, [x20]
LBB0_12:
	str	wzr, [x19, #8]
LBB0_13:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_i40e_aqc_opc_get_link_status,4,2 ; @i40e_aqc_opc_get_link_status
	.comm	_I40E_AQ_LSE_ENABLE,4,2         ; @I40E_AQ_LSE_ENABLE
	.comm	_I40E_AQ_LSE_DISABLE,4,2        ; @I40E_AQ_LSE_DISABLE
	.comm	_I40E_AQ_CONFIG_FEC_KR_ENA,4,2  ; @I40E_AQ_CONFIG_FEC_KR_ENA
	.comm	_I40E_AQ_CONFIG_FEC_RS_ENA,4,2  ; @I40E_AQ_CONFIG_FEC_RS_ENA
	.comm	_I40E_AQ_LOOPBACK_MASK,4,2      ; @I40E_AQ_LOOPBACK_MASK
	.comm	_I40E_AQ_CONFIG_PACING_MASK,4,2 ; @I40E_AQ_CONFIG_PACING_MASK
	.comm	_I40E_AQ_LINK_PAUSE_TX,4,2      ; @I40E_AQ_LINK_PAUSE_TX
	.comm	_I40E_AQ_LINK_PAUSE_RX,4,2      ; @I40E_AQ_LINK_PAUSE_RX
	.comm	_I40E_FC_FULL,4,2               ; @I40E_FC_FULL
	.comm	_I40E_FC_TX_PAUSE,4,2           ; @I40E_FC_TX_PAUSE
	.comm	_I40E_FC_RX_PAUSE,4,2           ; @I40E_FC_RX_PAUSE
	.comm	_I40E_FC_NONE,4,2               ; @I40E_FC_NONE
	.comm	_I40E_AQ_CONFIG_CRC_ENA,4,2     ; @I40E_AQ_CONFIG_CRC_ENA
	.comm	_I40E_AQ_LSE_IS_ENABLED,4,2     ; @I40E_AQ_LSE_IS_ENABLED
	.comm	_I40E_MAC_XL710,8,3             ; @I40E_MAC_XL710
	.comm	_I40E_PHY_TYPE_10GBASE_SFPP_CU,4,2 ; @I40E_PHY_TYPE_10GBASE_SFPP_CU
	.comm	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE,4,2 ; @I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE
	.comm	_I40E_MAC_X722,8,3              ; @I40E_MAC_X722
.subsections_via_symbols
