	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_get_module_eeprom
_bnxt_get_module_eeprom:                ## @bnxt_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, %r14
	movq	%rsi, %r13
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%r13), %r12
	movq	8(%r13), %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	_ETH_MODULE_SFF_8436_LEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rcx, %rax
	subq	%r12, %rax
	jle	LBB0_3
## %bb.1:
	movq	8(%r13), %rdx
	addq	%r12, %rdx
	cmpq	%rcx, %rdx
	cmovgq	%rax, %rbx
	movq	_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	%r14, %r9
	callq	_bnxt_read_sfp_module_eeprom_info
	movq	_ETH_MODULE_SFF_8436_LEN@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	addq	%rbx, %r12
	leaq	(%r14,%rbx,4), %r14
	movq	8(%r13), %rax
	subq	%rbx, %rax
	movq	%rax, %rbx
LBB0_3:
	movl	$0, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	subq	(%rdx), %r12
	movq	_I2C_DEV_ADDR_A2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r12, %rcx
	movq	%rbx, %r8
	movq	%r14, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_read_sfp_module_eeprom_info ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ## @ETH_MODULE_SFF_8436_LEN
	.comm	_I2C_DEV_ADDR_A0,4,2            ## @I2C_DEV_ADDR_A0
	.comm	_I2C_DEV_ADDR_A2,4,2            ## @I2C_DEV_ADDR_A2
	.no_dead_strip	_bnxt_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 bnxt_get_module_eeprom
_bnxt_get_module_eeprom:                ; @bnxt_get_module_eeprom
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	bl	_netdev_priv
	mov	x20, x0
	ldp	x21, x23, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	bl	_memset
Lloh0:
	adrp	x24, _ETH_MODULE_SFF_8436_LEN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ETH_MODULE_SFF_8436_LEN@GOTPAGEOFF]
	ldr	x8, [x24]
	subs	x9, x8, x21
	b.le	LBB0_3
; %bb.1:
	ldr	x10, [x22, #8]
	add	x10, x10, x21
	cmp	x10, x8
	csel	x23, x9, x23, gt
Lloh2:
	adrp	x8, _I2C_DEV_ADDR_A0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I2C_DEV_ADDR_A0@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x21
	mov	x4, x23
	mov	x5, x19
	bl	_bnxt_read_sfp_module_eeprom_info
	cbnz	w0, LBB0_6
; %bb.2:
	add	x21, x23, x21
	add	x19, x19, x23, lsl #2
	ldr	x8, [x22, #8]
	sub	x23, x8, x23
LBB0_3:
	cbz	x23, LBB0_5
; %bb.4:
	ldr	x8, [x24]
	sub	x3, x21, x8
Lloh5:
	adrp	x8, _I2C_DEV_ADDR_A2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_DEV_ADDR_A2@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	mov	x4, x23
	mov	x5, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bnxt_read_sfp_module_eeprom_info
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_MODULE_SFF_8436_LEN,8,3    ; @ETH_MODULE_SFF_8436_LEN
	.comm	_I2C_DEV_ADDR_A0,4,2            ; @I2C_DEV_ADDR_A0
	.comm	_I2C_DEV_ADDR_A2,4,2            ; @I2C_DEV_ADDR_A2
	.no_dead_strip	_bnxt_get_module_eeprom
.subsections_via_symbols
