	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_get_module_info
_bnx2x_get_module_info:                 ## @bnx2x_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
	pushq	%rax
	.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, %rbx
	movq	%rax, %rdi
	callq	_bnx2x_is_nvm_accessible
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_bnx2x_get_cur_phy_idx
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bnx2x_acquire_phy_lock
	movslq	%r15d, %r15
	shlq	$2, %r15
	movq	(%rbx), %rdi
	addq	%r15, %rdi
	movq	_I2C_DEV_ADDR_A0@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_SFP_EEPROM_SFF_8472_COMP_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SFP_EEPROM_SFF_8472_COMP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %r9
	movq	%rbx, %rsi
	callq	_bnx2x_read_sfp_module_eeprom
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bnx2x_release_phy_lock
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movq	_BNX2X_MSG_NVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	callq	_bnx2x_acquire_phy_lock
	addq	(%rbx), %r15
	movl	(%r13), %edx
	movq	_SFP_EEPROM_DIAG_TYPE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SFP_EEPROM_DIAG_TYPE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-44(%rbp), %r9
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_read_sfp_module_eeprom
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_bnx2x_release_phy_lock
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	callq	_DP
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, -48(%rbp)
	je	LBB0_11
## %bb.9:
	movl	-44(%rbp), %eax
	movq	_SFP_EEPROM_DIAG_ADDR_CHANGE_REQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
LBB0_11:
	movq	_ETH_MODULE_SFF_8079@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ETH_MODULE_SFF_8079_LEN@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_10:
	movq	_SFP_EEPROM_DDM_IMPLEMENTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.12:
	movq	_ETH_MODULE_SFF_8472@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ETH_MODULE_SFF_8472_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ## @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot access eeprom when the interface is down\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_I2C_DEV_ADDR_A0,4,2            ## @I2C_DEV_ADDR_A0
	.comm	_SFP_EEPROM_SFF_8472_COMP_ADDR,4,2 ## @SFP_EEPROM_SFF_8472_COMP_ADDR
	.comm	_SFP_EEPROM_SFF_8472_COMP_SIZE,4,2 ## @SFP_EEPROM_SFF_8472_COMP_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Failed reading SFF-8472 comp field\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SFP_EEPROM_DIAG_TYPE_ADDR,4,2  ## @SFP_EEPROM_DIAG_TYPE_ADDR
	.comm	_SFP_EEPROM_DIAG_TYPE_SIZE,4,2  ## @SFP_EEPROM_DIAG_TYPE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Failed reading Diag Type field\n"

	.comm	_SFP_EEPROM_DIAG_ADDR_CHANGE_REQ,4,2 ## @SFP_EEPROM_DIAG_ADDR_CHANGE_REQ
	.comm	_SFP_EEPROM_DDM_IMPLEMENTED,4,2 ## @SFP_EEPROM_DDM_IMPLEMENTED
	.comm	_ETH_MODULE_SFF_8079,4,2        ## @ETH_MODULE_SFF_8079
	.comm	_ETH_MODULE_SFF_8079_LEN,4,2    ## @ETH_MODULE_SFF_8079_LEN
	.comm	_ETH_MODULE_SFF_8472,4,2        ## @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,4,2    ## @ETH_MODULE_SFF_8472_LEN
	.no_dead_strip	_bnx2x_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 bnx2x_get_module_info
_bnx2x_get_module_info:                 ; @bnx2x_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
	mov	x20, x0
	bl	_bnx2x_is_nvm_accessible
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_bnx2x_get_cur_phy_idx
	mov	x21, x0
	mov	x0, x20
	bl	_bnx2x_acquire_phy_lock
	ldr	x8, [x20]
	add	x0, x8, w21, sxtw #2
Lloh0:
	adrp	x23, _I2C_DEV_ADDR_A0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _I2C_DEV_ADDR_A0@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x8, _SFP_EEPROM_SFF_8472_COMP_ADDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SFP_EEPROM_SFF_8472_COMP_ADDR@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _SFP_EEPROM_SFF_8472_COMP_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SFP_EEPROM_SFF_8472_COMP_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	x5, sp, #12
	mov	x1, x20
	bl	_bnx2x_read_sfp_module_eeprom
	mov	x22, x0
	mov	x0, x20
	bl	_bnx2x_release_phy_lock
	cbz	w22, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _BNX2X_MSG_NVM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BNX2X_MSG_NVM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh21:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	sxtw	x21, w21
	mov	x0, x20
	bl	_bnx2x_acquire_phy_lock
	ldr	x8, [x20]
	add	x0, x8, x21, lsl #2
	ldr	w2, [x23]
Lloh23:
	adrp	x8, _SFP_EEPROM_DIAG_TYPE_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SFP_EEPROM_DIAG_TYPE_ADDR@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _SFP_EEPROM_DIAG_TYPE_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SFP_EEPROM_DIAG_TYPE_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	add	x5, sp, #8
	mov	x1, x20
	bl	_bnx2x_read_sfp_module_eeprom
	mov	x21, x0
	mov	x0, x20
	bl	_bnx2x_release_phy_lock
	cbz	w21, LBB0_9
; %bb.5:
Lloh29:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_DP
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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_9:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w8, [sp, #8]
Lloh36:
	adrp	x9, _SFP_EEPROM_DIAG_ADDR_CHANGE_REQ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _SFP_EEPROM_DIAG_ADDR_CHANGE_REQ@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh39:
	adrp	x8, _ETH_MODULE_SFF_8079@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ETH_MODULE_SFF_8079@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ETH_MODULE_SFF_8079_LEN@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_8
LBB0_13:
Lloh44:
	adrp	x9, _SFP_EEPROM_DDM_IMPLEMENTED@GOTPAGE
Lloh45:
	ldr	x9, [x9, _SFP_EEPROM_DDM_IMPLEMENTED@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.14:
	mov	w0, #0
Lloh47:
	adrp	x8, _ETH_MODULE_SFF_8472@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ETH_MODULE_SFF_8472@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _ETH_MODULE_SFF_8472_LEN@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ETH_MODULE_SFF_8472_LEN@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.comm	_BNX2X_MSG_NVM,4,2              ; @BNX2X_MSG_NVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot access eeprom when the interface is down\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_I2C_DEV_ADDR_A0,4,2            ; @I2C_DEV_ADDR_A0
	.comm	_SFP_EEPROM_SFF_8472_COMP_ADDR,4,2 ; @SFP_EEPROM_SFF_8472_COMP_ADDR
	.comm	_SFP_EEPROM_SFF_8472_COMP_SIZE,4,2 ; @SFP_EEPROM_SFF_8472_COMP_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Failed reading SFF-8472 comp field\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SFP_EEPROM_DIAG_TYPE_ADDR,4,2  ; @SFP_EEPROM_DIAG_TYPE_ADDR
	.comm	_SFP_EEPROM_DIAG_TYPE_SIZE,4,2  ; @SFP_EEPROM_DIAG_TYPE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Failed reading Diag Type field\n"

	.comm	_SFP_EEPROM_DIAG_ADDR_CHANGE_REQ,4,2 ; @SFP_EEPROM_DIAG_ADDR_CHANGE_REQ
	.comm	_SFP_EEPROM_DDM_IMPLEMENTED,4,2 ; @SFP_EEPROM_DDM_IMPLEMENTED
	.comm	_ETH_MODULE_SFF_8079,4,2        ; @ETH_MODULE_SFF_8079
	.comm	_ETH_MODULE_SFF_8079_LEN,4,2    ; @ETH_MODULE_SFF_8079_LEN
	.comm	_ETH_MODULE_SFF_8472,4,2        ; @ETH_MODULE_SFF_8472
	.comm	_ETH_MODULE_SFF_8472_LEN,4,2    ; @ETH_MODULE_SFF_8472_LEN
	.no_dead_strip	_bnx2x_get_module_info
.subsections_via_symbols
