	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_get_module_eeprom
_i40e_get_module_eeprom:                ## @i40e_get_module_eeprom
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	$0, -48(%rbp)
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	jle	LBB0_18
## %bb.6:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_I40E_MODULE_TYPE_SFP@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	8(%rbx), %rdx
	leaq	(%rdx,%r13), %rcx
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rcx, %rax
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rax
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_I40E_I2C_EEPROM_DEV_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_ETH_MODULE_SFF_8436_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_I40E_I2C_EEPROM_DEV_ADDR2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, %rcx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rsi
	shrq	$63, %rsi
	addq	%rax, %rsi
	sarq	%rsi
	negq	%rsi
	addq	%r13, %rdx
	movq	%rdx, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%rsi, %rcx
	incq	%rdx
	cmpq	%rax, %rcx
	jge	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	-48(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_i40e_aq_get_phy_register
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, (%r14,%r13,8)
	incq	%r13
	movslq	(%rbx), %rax
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_MODULE_TYPE_SFP,8,3       ## @I40E_MODULE_TYPE_SFP
	.comm	_I40E_I2C_EEPROM_DEV_ADDR,8,3   ## @I40E_I2C_EEPROM_DEV_ADDR
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ## @ETH_MODULE_SFF_8079_LEN
	.comm	_I40E_I2C_EEPROM_DEV_ADDR2,8,3  ## @I40E_I2C_EEPROM_DEV_ADDR2
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ## @ETH_MODULE_SFF_8436_LEN
	.comm	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,4,2 ## @I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_i40e_get_module_eeprom
.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_eeprom
_i40e_get_module_eeprom:                ; @i40e_get_module_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	ldr	x8, [x0]
	ldr	x21, [x8]
	str	xzr, [sp, #8]
	cbz	x20, LBB0_16
; %bb.1:
	cbz	x19, LBB0_16
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_16
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x22, #0
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _I40E_MODULE_TYPE_SFP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_MODULE_TYPE_SFP@GOTPAGEOFF]
	ldr	x23, [x8]
Lloh2:
	ldr	x24, [x9]
Lloh3:
	adrp	x26, _ETH_MODULE_SFF_8079_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ETH_MODULE_SFF_8079_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x27, _I40E_I2C_EEPROM_DEV_ADDR2@GOTPAGE
Lloh6:
	ldr	x27, [x27, _I40E_I2C_EEPROM_DEV_ADDR2@GOTPAGEOFF]
Lloh7:
	adrp	x28, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGE
Lloh8:
	ldr	x28, [x28, _I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _ETH_MODULE_SFF_8436_LEN@GOTPAGE
Lloh10:
	ldr	x25, [x25, _ETH_MODULE_SFF_8436_LEN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x10, [x20, #8]
	add	x3, x10, x22
	cmp	x23, x24
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	subs	x8, x3, x8
	b.ge	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh11:
	adrp	x8, _I40E_I2C_EEPROM_DEV_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I40E_I2C_EEPROM_DEV_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	cmp	x3, x8
	b.ge	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x27]
	mov	x3, x8
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, #0
	cmp	x8, #0
	cinc	x9, x8, lt
	neg	x9, x9, asr #1
	add	x3, x10, x22
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x2, x2, #1
	add	x3, x3, x9
	cmp	x3, x8
	b.ge	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	add	x4, sp, #8
	mov	x0, x21
	mov	x5, #0
	bl	_i40e_aq_get_phy_register
	cbnz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	str	x8, [x19, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_19:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_MODULE_TYPE_SFP,8,3       ; @I40E_MODULE_TYPE_SFP
	.comm	_I40E_I2C_EEPROM_DEV_ADDR,8,3   ; @I40E_I2C_EEPROM_DEV_ADDR
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ; @ETH_MODULE_SFF_8079_LEN
	.comm	_I40E_I2C_EEPROM_DEV_ADDR2,8,3  ; @I40E_I2C_EEPROM_DEV_ADDR2
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ; @ETH_MODULE_SFF_8436_LEN
	.comm	_I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE,4,2 ; @I40E_AQ_PHY_REG_ACCESS_EXTERNAL_MODULE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i40e_get_module_eeprom
.subsections_via_symbols
