	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_get_module_info
_i40e_get_module_info:                  ## @i40e_get_module_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	%rsi, %r14
	callq	_netdev_priv
	movq	(%rax), %r12
	movq	8(%r12), %r15
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_i40e_update_link_info
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_25
LBB0_4:
	movq	8(%r15), %rax
	movq	_I40E_PHY_TYPE_EMPTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_25
LBB0_6:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	cmpl	$130, %eax
	je	LBB0_20
## %bb.7:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.8:
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.9:
	movq	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40E_I2C_EEPROM_DEV_ADDR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_I40E_MODULE_SFF_8472_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_i40e_aq_get_phy_register
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_I40E_MODULE_SFF_8472_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r8
	movq	%r15, %rdi
	xorl	%r9d, %r9d
	callq	_i40e_aq_get_phy_register
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:
	movl	-48(%rbp), %eax
	movq	_I40E_MODULE_SFF_ADDR_MODE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.13:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_warn
LBB0_15:
	movq	_ETH_MODULE_SFF_8079@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_18:
	movq	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I40E_MODULE_REVISION_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_i40e_aq_get_phy_register
	testq	%rax, %rax
	je	LBB0_19
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_24:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_25:
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cmpl	$3, -44(%rbp)
	jl	LBB0_23
LBB0_20:
	movq	_ETH_MODULE_SFF_8636@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_I40E_MODULE_QSFP_MAX_LEN@GOTPCREL(%rip), %rax
LBB0_22:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_23:
	movq	_ETH_MODULE_SFF_8436@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_14:
	cmpl	$0, -52(%rbp)
	je	LBB0_15
## %bb.16:
	movq	_I40E_MODULE_SFF_DDM_IMPLEMENTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.17:
	movq	_ETH_MODULE_SFF_8472@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_ETH_MODULE_SFF_8472_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE,4,2 ## @I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Module EEPROM memory read not supported. Please update the NVM image.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I40E_PHY_TYPE_EMPTY,8,3        ## @I40E_PHY_TYPE_EMPTY
L_.str.1:                               ## @.str.1
	.asciz	"Cannot read module EEPROM memory. No module connected.\n"

	.comm	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,4,2 ## @I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE
	.comm	_I40E_I2C_EEPROM_DEV_ADDR,4,2   ## @I40E_I2C_EEPROM_DEV_ADDR
	.comm	_I40E_MODULE_SFF_8472_COMP,4,2  ## @I40E_MODULE_SFF_8472_COMP
	.comm	_I40E_MODULE_SFF_8472_SWAP,4,2  ## @I40E_MODULE_SFF_8472_SWAP
	.comm	_I40E_MODULE_SFF_ADDR_MODE,4,2  ## @I40E_MODULE_SFF_ADDR_MODE
L_.str.2:                               ## @.str.2
	.asciz	"Module address swap to access page 0xA2 is not supported.\n"

	.comm	_ETH_MODULE_SFF_8079,8,3        ## @ETH_MODULE_SFF_8079
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ## @ETH_MODULE_SFF_8079_LEN
	.comm	_I40E_MODULE_SFF_DDM_IMPLEMENTED,4,2 ## @I40E_MODULE_SFF_DDM_IMPLEMENTED
	.comm	_ETH_MODULE_SFF_8472,8,3        ## @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,8,3    ## @ETH_MODULE_SFF_8472_LEN
	.comm	_I40E_MODULE_REVISION_ADDR,4,2  ## @I40E_MODULE_REVISION_ADDR
	.comm	_ETH_MODULE_SFF_8636,8,3        ## @ETH_MODULE_SFF_8636
	.comm	_I40E_MODULE_QSFP_MAX_LEN,8,3   ## @I40E_MODULE_QSFP_MAX_LEN
	.comm	_ETH_MODULE_SFF_8436,8,3        ## @ETH_MODULE_SFF_8436
L_.str.3:                               ## @.str.3
	.asciz	"Module type unrecognized\n"

	.no_dead_strip	_i40e_get_module_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_get_module_info
_i40e_get_module_info:                  ; @i40e_get_module_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	x19, x1
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	x20, [x21, #8]
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_i40e_update_link_info
	cbz	x0, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_21
LBB0_3:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_4:
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _I40E_PHY_TYPE_EMPTY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I40E_PHY_TYPE_EMPTY@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #130
	b.eq	LBB0_16
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.9:
Lloh12:
	adrp	x22, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh14:
	adrp	x23, _I40E_I2C_EEPROM_DEV_ADDR@GOTPAGE
Lloh15:
	ldr	x23, [x23, _I40E_I2C_EEPROM_DEV_ADDR@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh16:
	adrp	x8, _I40E_MODULE_SFF_8472_COMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _I40E_MODULE_SFF_8472_COMP@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x4, sp, #12
	mov	x0, x20
	mov	x5, #0
	bl	_i40e_aq_get_phy_register
	cbnz	x0, LBB0_2
; %bb.10:
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh19:
	adrp	x8, _I40E_MODULE_SFF_8472_SWAP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I40E_MODULE_SFF_8472_SWAP@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x5, #0
	bl	_i40e_aq_get_phy_register
	cbnz	x0, LBB0_2
; %bb.11:
	ldr	w8, [sp, #8]
Lloh22:
	adrp	x9, _I40E_MODULE_SFF_ADDR_MODE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I40E_MODULE_SFF_ADDR_MODE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.12:
	ldr	w0, [x21]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_warn
LBB0_13:
	mov	w0, #0
Lloh27:
	adrp	x8, _ETH_MODULE_SFF_8079@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETH_MODULE_SFF_8079@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh32:
	adrp	x8, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _I40E_MODULE_REVISION_ADDR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _I40E_MODULE_REVISION_ADDR@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	add	x4, sp, #4
	mov	x0, x20
	mov	w2, #0
	mov	x5, #0
	bl	_i40e_aq_get_phy_register
	cbnz	x0, LBB0_2
; %bb.15:
	ldr	w8, [sp, #4]
	cmp	w8, #3
	b.lt	LBB0_23
LBB0_16:
	mov	w0, #0
Lloh38:
	adrp	x8, _ETH_MODULE_SFF_8636@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ETH_MODULE_SFF_8636@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
Lloh40:
	adrp	x9, _I40E_MODULE_QSFP_MAX_LEN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _I40E_MODULE_QSFP_MAX_LEN@GOTPAGEOFF]
LBB0_18:
	ldr	x9, [x9]
	stp	x9, x8, [x19]
	b	LBB0_22
LBB0_19:
	ldr	w0, [x21]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_20:
	bl	_netdev_err
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
LBB0_23:
	mov	w0, #0
Lloh46:
	adrp	x8, _ETH_MODULE_SFF_8436@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ETH_MODULE_SFF_8436@GOTPAGEOFF]
	b	LBB0_17
LBB0_24:
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_13
; %bb.25:
Lloh48:
	adrp	x9, _I40E_MODULE_SFF_DDM_IMPLEMENTED@GOTPAGE
Lloh49:
	ldr	x9, [x9, _I40E_MODULE_SFF_DDM_IMPLEMENTED@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.26:
	mov	w0, #0
Lloh51:
	adrp	x8, _ETH_MODULE_SFF_8472@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ETH_MODULE_SFF_8472@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x9, _ETH_MODULE_SFF_8472_LEN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ETH_MODULE_SFF_8472_LEN@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE,4,2 ; @I40E_HW_FLAG_AQ_PHY_ACCESS_CAPABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Module EEPROM memory read not supported. Please update the NVM image.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I40E_PHY_TYPE_EMPTY,8,3        ; @I40E_PHY_TYPE_EMPTY
l_.str.1:                               ; @.str.1
	.asciz	"Cannot read module EEPROM memory. No module connected.\n"

	.comm	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,4,2 ; @I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE
	.comm	_I40E_I2C_EEPROM_DEV_ADDR,4,2   ; @I40E_I2C_EEPROM_DEV_ADDR
	.comm	_I40E_MODULE_SFF_8472_COMP,4,2  ; @I40E_MODULE_SFF_8472_COMP
	.comm	_I40E_MODULE_SFF_8472_SWAP,4,2  ; @I40E_MODULE_SFF_8472_SWAP
	.comm	_I40E_MODULE_SFF_ADDR_MODE,4,2  ; @I40E_MODULE_SFF_ADDR_MODE
l_.str.2:                               ; @.str.2
	.asciz	"Module address swap to access page 0xA2 is not supported.\n"

	.comm	_ETH_MODULE_SFF_8079,8,3        ; @ETH_MODULE_SFF_8079
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ; @ETH_MODULE_SFF_8079_LEN
	.comm	_I40E_MODULE_SFF_DDM_IMPLEMENTED,4,2 ; @I40E_MODULE_SFF_DDM_IMPLEMENTED
	.comm	_ETH_MODULE_SFF_8472,8,3        ; @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,8,3    ; @ETH_MODULE_SFF_8472_LEN
	.comm	_I40E_MODULE_REVISION_ADDR,4,2  ; @I40E_MODULE_REVISION_ADDR
	.comm	_ETH_MODULE_SFF_8636,8,3        ; @ETH_MODULE_SFF_8636
	.comm	_I40E_MODULE_QSFP_MAX_LEN,8,3   ; @I40E_MODULE_QSFP_MAX_LEN
	.comm	_ETH_MODULE_SFF_8436,8,3        ; @ETH_MODULE_SFF_8436
l_.str.3:                               ; @.str.3
	.asciz	"Module type unrecognized\n"

	.no_dead_strip	_i40e_get_module_info
.subsections_via_symbols
