	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_get_module_eeprom
_qede_get_module_eeprom:                ## @qede_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	callq	_netdev_priv
	movq	(%r13), %rbx
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%r15d, %r15d
	movq	%rdi, %r14
	subq	%rbx, %r14
	jle	LBB0_1
## %bb.2:
	movq	8(%r13), %rcx
	leaq	(%rcx,%rbx), %rdx
	cmpq	%rdi, %rdx
	cmovleq	%rcx, %r14
	movq	8(%rax), %rcx
	movq	(%rcx), %r9
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	movq	_QED_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rsi
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	*(%r9)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_DP_ERR
                                        ## kill: def $r15d killed $r15d def $r15
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	leaq	(%r12,%r14,4), %r12
	addq	%r14, %rbx
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_5:
	movq	%rbx, %rcx
	subq	%rdi, %rcx
	jl	LBB0_9
## %bb.6:
	movq	_ETH_MODULE_SFF_8472_LEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, %rdi
	subq	%rbx, %rdi
	jle	LBB0_9
## %bb.7:
	movq	8(%r13), %r8
	subq	%r14, %r8
	addq	%r8, %rbx
	cmpq	%rdx, %rbx
	cmovgq	%rdi, %r8
	movq	8(%rax), %rdx
	movq	(%rdx), %r9
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_QED_I2C_DEV_ADDR_A2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r12, %rsi
	callq	*(%r9)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_QED_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_DP_VERBOSE
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ## @ETH_MODULE_SFF_8079_LEN
	.comm	_QED_I2C_DEV_ADDR_A0,4,2        ## @QED_I2C_DEV_ADDR_A0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed reading A0 section  %d\n"

	.comm	_ETH_MODULE_SFF_8472_LEN,8,3    ## @ETH_MODULE_SFF_8472_LEN
	.comm	_QED_I2C_DEV_ADDR_A2,4,2        ## @QED_I2C_DEV_ADDR_A2
	.comm	_QED_MSG_DEBUG,4,2              ## @QED_MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"Failed reading A2 section %d\n"

	.no_dead_strip	_qede_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 qede_get_module_eeprom
_qede_get_module_eeprom:                ; @qede_get_module_eeprom
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	x22, [x21]
Lloh0:
	adrp	x25, _ETH_MODULE_SFF_8079_LEN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ETH_MODULE_SFF_8079_LEN@GOTPAGEOFF]
	ldr	x8, [x25]
	subs	x9, x8, x22
	b.le	LBB0_3
; %bb.1:
	ldr	x10, [x21, #8]
	add	x11, x10, x22
	cmp	x11, x8
	csel	x23, x9, x10, gt
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19]
Lloh2:
	adrp	x9, _QED_I2C_DEV_ADDR_A0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QED_I2C_DEV_ADDR_A0@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x1, x20
	mov	x3, x22
	mov	x4, x23
	blr	x8
	cbz	w0, LBB0_4
; %bb.2:
	mov	x24, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_DP_ERR
	b	LBB0_9
LBB0_3:
	mov	x23, #0
	subs	x3, x22, x8
	b.ge	LBB0_5
	b	LBB0_8
LBB0_4:
	add	x20, x20, x23, lsl #2
	add	x22, x23, x22
	ldr	x8, [x25]
	subs	x3, x22, x8
	b.lt	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ETH_MODULE_SFF_8472_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_MODULE_SFF_8472_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	subs	x9, x8, x22
	b.le	LBB0_8
; %bb.6:
	ldr	x10, [x21, #8]
	sub	x10, x10, x23
	add	x11, x10, x22
	cmp	x11, x8
	csel	x4, x9, x10, gt
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19]
Lloh10:
	adrp	x9, _QED_I2C_DEV_ADDR_A2@GOTPAGE
Lloh11:
	ldr	x9, [x9, _QED_I2C_DEV_ADDR_A2@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_8
; %bb.7:
	mov	x3, x0
Lloh13:
	adrp	x8, _QED_MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QED_MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_VERBOSE
LBB0_8:
	mov	w24, #0
LBB0_9:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_MODULE_SFF_8079_LEN,8,3    ; @ETH_MODULE_SFF_8079_LEN
	.comm	_QED_I2C_DEV_ADDR_A0,4,2        ; @QED_I2C_DEV_ADDR_A0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed reading A0 section  %d\n"

	.comm	_ETH_MODULE_SFF_8472_LEN,8,3    ; @ETH_MODULE_SFF_8472_LEN
	.comm	_QED_I2C_DEV_ADDR_A2,4,2        ; @QED_I2C_DEV_ADDR_A2
	.comm	_QED_MSG_DEBUG,4,2              ; @QED_MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"Failed reading A2 section %d\n"

	.no_dead_strip	_qede_get_module_eeprom
.subsections_via_symbols
