	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8727_read_status
_bnx2x_8727_read_status:                ## @bnx2x_8727_read_status
	.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	$40, %rsp
	.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, %rbx
	movq	%rdi, %r13
	movq	8(%rsi), %r14
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-68(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	cmpl	$0, -68(%rbp)
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_RXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	$0, (%r12)
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	-52(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_sfp_mask_fault
	movl	(%r15), %edx
	movq	_MDIO_PMA_LASI_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	callq	_bnx2x_cl45_read
	movl	(%r12), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %r8
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rbx
	callq	_bnx2x_cl45_read
	movq	_FLAGS_NOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	jne	LBB0_8
## %bb.3:
	testb	$32, -52(%rbp)
	jne	LBB0_8
## %bb.4:
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_8727_GPIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	testb	$1, -43(%rbp)
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_CHIP_IS_E1x
	testl	%eax, %eax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_BP_PATH
                                        ## kill: def $eax killed $eax def $rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	leal	(%rax,%rcx,2), %ebx
LBB0_7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DP
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_LASI_RXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$32, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_PHY_IDENTIFIER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	$256, %r8d                      ## imm = 0x100
	orl	-44(%rbp), %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r12), %edx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	xorl	%ebx, %ebx
	movq	_MDIO_PMA_LASI_RXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-52(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_8727_power_module
	jmp	LBB0_26
LBB0_8:
	testb	$32, -52(%rbp)
	je	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_bnx2x_8727_handle_mod_abs
	movl	(%rbx), %edx
	movq	_MDIO_PMA_LASI_RXCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$36, %r8d
	callq	_bnx2x_cl45_write
LBB0_10:
	movq	_FLAGS_SFP_NOT_APPROVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, (%r13)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DP
	jmp	LBB0_26
LBB0_1:
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	$1, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_bnx2x_sfp_set_transmitter
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	-56(%rbp), %eax
	movl	%eax, %ecx
	andl	$32772, %ecx                    ## imm = 0x8004
	cmpl	$4, %ecx
	jne	LBB0_14
## %bb.12:
	leaq	L_.str.6(%rip), %rsi
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	andl	$8193, %eax                     ## imm = 0x2001
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_17:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_15:
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	xorl	%ebx, %ebx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %edi
	movl	(%r12), %edx
	xorl	%eax, %eax
	callq	_DP
	movq	(%r15), %rax
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.19:
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_LASI_TXSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-44(%rbp), %r8
	callq	_bnx2x_cl45_read
	testb	$1, -44(%rbp)
	je	LBB0_21
## %bb.20:
	movl	$1, 8(%r15)
LBB0_21:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_bnx2x_ext_phy_resolve_fc
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%r15)
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
LBB0_23:
	movq	%r12, %rdi
	callq	_DUAL_MEDIA
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	8(%r13), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8727_PCS_GP@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_read
	movl	$-3073, %eax                    ## imm = 0xF3FF
	andl	-44(%rbp), %eax
	xorl	%ecx, %ecx
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	movl	$3072, %r8d                     ## imm = 0xC00
	cmovel	%ecx, %r8d
	orl	%eax, %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r12), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_cl45_write
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ## @MDIO_PMA_LASI_CTRL
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ## @MDIO_PMA_LASI_RXSTAT
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8727 RX_ALARM_STATUS  0x%x\n"

	.comm	_MDIO_PMA_LASI_TXSTAT,4,2       ## @MDIO_PMA_LASI_TXSTAT
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ## @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_STAT,4,2         ## @MDIO_PMA_LASI_STAT
L_.str.1:                               ## @.str.1
	.asciz	"8727 LASI status 0x%x\n"

	.comm	_MDIO_PMA_REG_M8051_MSGOUT_REG,4,2 ## @MDIO_PMA_REG_M8051_MSGOUT_REG
	.comm	_FLAGS_NOC,4,2                  ## @FLAGS_NOC
	.comm	_MDIO_PMA_REG_8727_GPIO_CTRL,4,2 ## @MDIO_PMA_REG_8727_GPIO_CTRL
L_.str.2:                               ## @.str.2
	.asciz	"8727 Power fault has been detected on port %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error: Power fault on Port %d has been detected and the power to that SFP+ module has been removed to prevent failure of the card. Please remove the SFP+ module and restart the system to clear this error.\n"

	.comm	_MDIO_PMA_LASI_RXCTRL,4,2       ## @MDIO_PMA_LASI_RXCTRL
	.comm	_MDIO_PMA_REG_PHY_IDENTIFIER,4,2 ## @MDIO_PMA_REG_PHY_IDENTIFIER
	.comm	_FLAGS_SFP_NOT_APPROVED,4,2     ## @FLAGS_SFP_NOT_APPROVED
L_.str.4:                               ## @.str.4
	.asciz	"Enabling 8727 TX laser\n"

L_.str.5:                               ## @.str.5
	.asciz	"Tx is disabled\n"

	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ## @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
L_.str.6:                               ## @.str.6
	.asciz	"port %x: External link up in 10G\n"

	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
L_.str.7:                               ## @.str.7
	.asciz	"port %x: External link up in 1G\n"

L_.str.8:                               ## @.str.8
	.asciz	"port %x: External link is down\n"

	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
L_.str.9:                               ## @.str.9
	.asciz	"duplex = 0x%x\n"

	.comm	_MDIO_PMA_REG_8727_PCS_GP,4,2   ## @MDIO_PMA_REG_8727_PCS_GP
	.no_dead_strip	_bnx2x_8727_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8727_read_status
_bnx2x_8727_read_status:                ; @bnx2x_8727_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x1, #8]
	ldr	w23, [x1]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x24, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x8, _MDIO_PMA_LASI_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MDIO_PMA_LASI_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, sp, #20
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_11
; %bb.1:
	ldr	w2, [x24]
Lloh5:
	adrp	x27, _MDIO_PMA_LASI_RXSTAT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MDIO_PMA_LASI_RXSTAT@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	str	xzr, [x22]
Lloh7:
	adrp	x25, _NETIF_MSG_LINK@GOTPAGE
Lloh8:
	ldr	x25, [x25, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w8, [sp, #24]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh11:
	adrp	x26, _MDIO_PMA_LASI_TXSTAT@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MDIO_PMA_LASI_TXSTAT@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh13:
	adrp	x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_PMA_LASI_TXCTRL@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_sfp_mask_fault
	ldr	w2, [x24]
Lloh16:
	adrp	x8, _MDIO_PMA_LASI_STAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_PMA_LASI_STAT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w0, [x25]
	ldr	w8, [sp, #16]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w2, [x24]
Lloh21:
	adrp	x8, _MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MDIO_PMA_REG_M8051_MSGOUT_REG@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _FLAGS_NOC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FLAGS_NOC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.2:
	ldrb	w8, [sp, #24]
	tbnz	w8, #5, LBB0_7
; %bb.3:
	ldr	w2, [x24]
Lloh27:
	adrp	x8, _MDIO_PMA_REG_8727_GPIO_CTRL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_PMA_REG_8727_GPIO_CTRL@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #17]
	tbnz	w8, #0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_CHIP_IS_E1x
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_BP_PATH
	ldr	w8, [x21]
	add	w23, w0, w8, lsl #1
LBB0_6:
	ldr	w0, [x25]
	str	x23, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldr	w0, [x20]
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x23
	bl	_netdev_err
	ldr	w2, [x24]
Lloh34:
	adrp	x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	bl	_bnx2x_cl45_write
	ldr	w2, [x24]
Lloh37:
	adrp	x22, _MDIO_PMA_REG_PHY_IDENTIFIER@GOTPAGE
Lloh38:
	ldr	x22, [x22, _MDIO_PMA_REG_PHY_IDENTIFIER@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #16]
	orr	w4, w8, #0x100
	str	w4, [sp, #16]
	ldr	w2, [x24]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	ldr	w2, [x24]
	ldr	w3, [x27]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	x0, [x21, #8]
	mov	x1, x19
	mov	w2, #0
	bl	_bnx2x_8727_power_module
	b	LBB0_11
LBB0_7:
	ldrb	w8, [sp, #24]
	tbz	w8, #5, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_bnx2x_8727_handle_mod_abs
	ldr	w2, [x24]
Lloh39:
	adrp	x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MDIO_PMA_LASI_RXCTRL@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #36
	bl	_bnx2x_cl45_write
LBB0_9:
	ldr	w8, [x19]
Lloh42:
	adrp	x9, _FLAGS_SFP_NOT_APPROVED@GOTPAGE
Lloh43:
	ldr	x9, [x9, _FLAGS_SFP_NOT_APPROVED@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	ldr	w0, [x25]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_DP
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
Lloh47:
	adrp	x1, l_.str.4@PAGE
Lloh48:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_DP
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_bnx2x_sfp_set_transmitter
	ldr	w2, [x24]
Lloh49:
	adrp	x8, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MDIO_PMA_REG_8073_SPEED_LINK_STATUS@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #28]
	mov	w9, #32772
	and	w9, w8, w9
Lloh52:
	adrp	x28, _SPEED_10000@GOTPAGE
Lloh53:
	ldr	x28, [x28, _SPEED_10000@GOTPAGEOFF]
	cmp	w9, #4
	b.ne	LBB0_15
; %bb.14:
Lloh54:
	adrp	x1, l_.str.6@PAGE
Lloh55:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x8, x28
	b	LBB0_17
LBB0_15:
	mov	w9, #8193
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.16:
Lloh56:
	adrp	x1, l_.str.7@PAGE
Lloh57:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh58:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
LBB0_17:
	mov	w27, #0
	ldr	x8, [x8]
	str	x8, [x22]
	mov	w23, #1
	b	LBB0_19
LBB0_18:
	mov	w23, #0
	mov	w27, #1
Lloh60:
	adrp	x1, l_.str.8@PAGE
Lloh61:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_19:
	ldr	w0, [x25]
	ldr	w8, [x21]
	str	x8, [sp]
	bl	_DP
	ldr	x8, [x22]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.20:
	ldr	w2, [x24]
	ldr	w3, [x26]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w2, [x24]
	ldr	w3, [x26]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldrb	w8, [sp, #16]
	tbz	w8, #0, LBB0_22
; %bb.21:
	mov	w8, #1
	str	w8, [x22, #8]
LBB0_22:
	tbnz	w27, #0, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_bnx2x_ext_phy_resolve_fc
Lloh62:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x22, #12]
	ldr	w0, [x25]
	str	x8, [sp]
Lloh65:
	adrp	x1, l_.str.9@PAGE
Lloh66:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_DP
LBB0_24:
	mov	x0, x21
	bl	_DUAL_MEDIA
	cbz	x0, LBB0_12
; %bb.25:
Lloh67:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh68:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh69:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.26:
	ldr	w2, [x24]
Lloh70:
	adrp	x21, _MDIO_PMA_REG_8727_PCS_GP@GOTPAGE
Lloh71:
	ldr	x21, [x21, _MDIO_PMA_REG_8727_PCS_GP@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #16]
	and	w8, w8, #0xfffff3ff
	mov	w9, #3072
	cmp	w27, #0
	csel	w9, w9, wzr, ne
	orr	w4, w8, w9
	str	w4, [sp, #16]
	ldr	w2, [x24]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_LASI_CTRL,4,2         ; @MDIO_PMA_LASI_CTRL
	.comm	_MDIO_PMA_LASI_RXSTAT,4,2       ; @MDIO_PMA_LASI_RXSTAT
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8727 RX_ALARM_STATUS  0x%x\n"

	.comm	_MDIO_PMA_LASI_TXSTAT,4,2       ; @MDIO_PMA_LASI_TXSTAT
	.comm	_MDIO_PMA_LASI_TXCTRL,4,2       ; @MDIO_PMA_LASI_TXCTRL
	.comm	_MDIO_PMA_LASI_STAT,4,2         ; @MDIO_PMA_LASI_STAT
l_.str.1:                               ; @.str.1
	.asciz	"8727 LASI status 0x%x\n"

	.comm	_MDIO_PMA_REG_M8051_MSGOUT_REG,4,2 ; @MDIO_PMA_REG_M8051_MSGOUT_REG
	.comm	_FLAGS_NOC,4,2                  ; @FLAGS_NOC
	.comm	_MDIO_PMA_REG_8727_GPIO_CTRL,4,2 ; @MDIO_PMA_REG_8727_GPIO_CTRL
l_.str.2:                               ; @.str.2
	.asciz	"8727 Power fault has been detected on port %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error: Power fault on Port %d has been detected and the power to that SFP+ module has been removed to prevent failure of the card. Please remove the SFP+ module and restart the system to clear this error.\n"

	.comm	_MDIO_PMA_LASI_RXCTRL,4,2       ; @MDIO_PMA_LASI_RXCTRL
	.comm	_MDIO_PMA_REG_PHY_IDENTIFIER,4,2 ; @MDIO_PMA_REG_PHY_IDENTIFIER
	.comm	_FLAGS_SFP_NOT_APPROVED,4,2     ; @FLAGS_SFP_NOT_APPROVED
l_.str.4:                               ; @.str.4
	.asciz	"Enabling 8727 TX laser\n"

l_.str.5:                               ; @.str.5
	.asciz	"Tx is disabled\n"

	.comm	_MDIO_PMA_REG_8073_SPEED_LINK_STATUS,4,2 ; @MDIO_PMA_REG_8073_SPEED_LINK_STATUS
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
l_.str.6:                               ; @.str.6
	.asciz	"port %x: External link up in 10G\n"

	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
l_.str.7:                               ; @.str.7
	.asciz	"port %x: External link up in 1G\n"

l_.str.8:                               ; @.str.8
	.asciz	"port %x: External link is down\n"

	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
l_.str.9:                               ; @.str.9
	.asciz	"duplex = 0x%x\n"

	.comm	_MDIO_PMA_REG_8727_PCS_GP,4,2   ; @MDIO_PMA_REG_8727_PCS_GP
	.no_dead_strip	_bnx2x_8727_read_status
.subsections_via_symbols
