	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_report_fw_link
_bnx2_report_fw_link:                   ## @bnx2_report_fw_link
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_26
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_6
## %bb.2:
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	24(%rbx), %eax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.5:
	movq	_BNX2_LINK_STATUS_2500HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_6:
	movq	_BNX2_LINK_STATUS_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_25
LBB0_7:
	movl	24(%rbx), %eax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.8:
	movq	_BNX2_LINK_STATUS_100HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	movl	24(%rbx), %eax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.10:
	movq	_BNX2_LINK_STATUS_10HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_12:
	movl	24(%rbx), %eax
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.13:
	movq	_BNX2_LINK_STATUS_1000HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_BNX2_LINK_STATUS_2500FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_BNX2_LINK_STATUS_100FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_BNX2_LINK_STATUS_10FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_BNX2_LINK_STATUS_1000FULL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r14d
LBB0_19:
	movq	_BNX2_LINK_STATUS_LINK_UP@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	cmpq	$0, 16(%rbx)
	je	LBB0_25
## %bb.20:
	movq	_BNX2_LINK_STATUS_AN_ENABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	8(%rbx), %esi
	leaq	-28(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_bnx2_read_phy
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_bnx2_read_phy
	movq	_BMSR_ANEGCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_22
## %bb.21:
	movq	_BNX2_PHY_FLAG_PARALLEL_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_23
LBB0_22:
	movq	_BNX2_LINK_STATUS_PARALLEL_DET@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_BNX2_LINK_STATUS_AN_COMPLETE@GOTPCREL(%rip), %rax
LBB0_24:
	orl	(%rax), %r14d
LBB0_25:
	movq	_BNX2_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_bnx2_shmem_wr
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ## @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_BNX2_LINK_STATUS_10HALF,4,2    ## @BNX2_LINK_STATUS_10HALF
	.comm	_BNX2_LINK_STATUS_10FULL,4,2    ## @BNX2_LINK_STATUS_10FULL
	.comm	_BNX2_LINK_STATUS_100HALF,4,2   ## @BNX2_LINK_STATUS_100HALF
	.comm	_BNX2_LINK_STATUS_100FULL,4,2   ## @BNX2_LINK_STATUS_100FULL
	.comm	_BNX2_LINK_STATUS_1000HALF,4,2  ## @BNX2_LINK_STATUS_1000HALF
	.comm	_BNX2_LINK_STATUS_1000FULL,4,2  ## @BNX2_LINK_STATUS_1000FULL
	.comm	_BNX2_LINK_STATUS_2500HALF,4,2  ## @BNX2_LINK_STATUS_2500HALF
	.comm	_BNX2_LINK_STATUS_2500FULL,4,2  ## @BNX2_LINK_STATUS_2500FULL
	.comm	_BNX2_LINK_STATUS_LINK_UP,4,2   ## @BNX2_LINK_STATUS_LINK_UP
	.comm	_BNX2_LINK_STATUS_AN_ENABLED,4,2 ## @BNX2_LINK_STATUS_AN_ENABLED
	.comm	_BMSR_ANEGCOMPLETE,4,2          ## @BMSR_ANEGCOMPLETE
	.comm	_BNX2_PHY_FLAG_PARALLEL_DETECT,4,2 ## @BNX2_PHY_FLAG_PARALLEL_DETECT
	.comm	_BNX2_LINK_STATUS_PARALLEL_DET,4,2 ## @BNX2_LINK_STATUS_PARALLEL_DET
	.comm	_BNX2_LINK_STATUS_AN_COMPLETE,4,2 ## @BNX2_LINK_STATUS_AN_COMPLETE
	.comm	_BNX2_LINK_STATUS_LINK_DOWN,4,2 ## @BNX2_LINK_STATUS_LINK_DOWN
	.comm	_BNX2_LINK_STATUS,4,2           ## @BNX2_LINK_STATUS
	.no_dead_strip	_bnx2_report_fw_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_report_fw_link
_bnx2_report_fw_link:                   ; @bnx2_report_fw_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_26
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.3:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w8, [x19, #24]
Lloh5:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.5:
Lloh8:
	adrp	x8, _BNX2_LINK_STATUS_2500HALF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNX2_LINK_STATUS_2500HALF@GOTPAGEOFF]
	b	LBB0_18
LBB0_6:
Lloh10:
	adrp	x8, _BNX2_LINK_STATUS_LINK_DOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2_LINK_STATUS_LINK_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	b	LBB0_25
LBB0_7:
	ldr	w8, [x19, #24]
Lloh13:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.8:
Lloh16:
	adrp	x8, _BNX2_LINK_STATUS_100HALF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNX2_LINK_STATUS_100HALF@GOTPAGEOFF]
	b	LBB0_18
LBB0_9:
	ldr	w8, [x19, #24]
Lloh18:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.10:
Lloh21:
	adrp	x8, _BNX2_LINK_STATUS_10HALF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BNX2_LINK_STATUS_10HALF@GOTPAGEOFF]
	b	LBB0_18
LBB0_11:
	mov	w8, #0
	b	LBB0_19
LBB0_12:
	ldr	w8, [x19, #24]
Lloh23:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
; %bb.13:
Lloh26:
	adrp	x8, _BNX2_LINK_STATUS_1000HALF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BNX2_LINK_STATUS_1000HALF@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh28:
	adrp	x8, _BNX2_LINK_STATUS_2500FULL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BNX2_LINK_STATUS_2500FULL@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh30:
	adrp	x8, _BNX2_LINK_STATUS_100FULL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BNX2_LINK_STATUS_100FULL@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
Lloh32:
	adrp	x8, _BNX2_LINK_STATUS_10FULL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BNX2_LINK_STATUS_10FULL@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh34:
	adrp	x8, _BNX2_LINK_STATUS_1000FULL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BNX2_LINK_STATUS_1000FULL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
LBB0_19:
Lloh36:
	adrp	x9, _BNX2_LINK_STATUS_LINK_UP@GOTPAGE
Lloh37:
	ldr	x9, [x9, _BNX2_LINK_STATUS_LINK_UP@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_25
; %bb.20:
Lloh39:
	adrp	x8, _BNX2_LINK_STATUS_AN_ENABLED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BNX2_LINK_STATUS_AN_ENABLED@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w20, w8, w2
	ldr	w1, [x19, #8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w1, [x19, #8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w8, [sp, #12]
Lloh42:
	adrp	x9, _BMSR_ANEGCOMPLETE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _BMSR_ANEGCOMPLETE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w8, [x19]
Lloh45:
	adrp	x9, _BNX2_PHY_FLAG_PARALLEL_DETECT@GOTPAGE
Lloh46:
	ldr	x9, [x9, _BNX2_PHY_FLAG_PARALLEL_DETECT@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
LBB0_22:
Lloh48:
	adrp	x8, _BNX2_LINK_STATUS_PARALLEL_DET@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BNX2_LINK_STATUS_PARALLEL_DET@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh50:
	adrp	x8, _BNX2_LINK_STATUS_AN_COMPLETE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BNX2_LINK_STATUS_AN_COMPLETE@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	orr	w2, w8, w20
LBB0_25:
Lloh52:
	adrp	x8, _BNX2_LINK_STATUS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _BNX2_LINK_STATUS@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_shmem_wr
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ; @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_BNX2_LINK_STATUS_10HALF,4,2    ; @BNX2_LINK_STATUS_10HALF
	.comm	_BNX2_LINK_STATUS_10FULL,4,2    ; @BNX2_LINK_STATUS_10FULL
	.comm	_BNX2_LINK_STATUS_100HALF,4,2   ; @BNX2_LINK_STATUS_100HALF
	.comm	_BNX2_LINK_STATUS_100FULL,4,2   ; @BNX2_LINK_STATUS_100FULL
	.comm	_BNX2_LINK_STATUS_1000HALF,4,2  ; @BNX2_LINK_STATUS_1000HALF
	.comm	_BNX2_LINK_STATUS_1000FULL,4,2  ; @BNX2_LINK_STATUS_1000FULL
	.comm	_BNX2_LINK_STATUS_2500HALF,4,2  ; @BNX2_LINK_STATUS_2500HALF
	.comm	_BNX2_LINK_STATUS_2500FULL,4,2  ; @BNX2_LINK_STATUS_2500FULL
	.comm	_BNX2_LINK_STATUS_LINK_UP,4,2   ; @BNX2_LINK_STATUS_LINK_UP
	.comm	_BNX2_LINK_STATUS_AN_ENABLED,4,2 ; @BNX2_LINK_STATUS_AN_ENABLED
	.comm	_BMSR_ANEGCOMPLETE,4,2          ; @BMSR_ANEGCOMPLETE
	.comm	_BNX2_PHY_FLAG_PARALLEL_DETECT,4,2 ; @BNX2_PHY_FLAG_PARALLEL_DETECT
	.comm	_BNX2_LINK_STATUS_PARALLEL_DET,4,2 ; @BNX2_LINK_STATUS_PARALLEL_DET
	.comm	_BNX2_LINK_STATUS_AN_COMPLETE,4,2 ; @BNX2_LINK_STATUS_AN_COMPLETE
	.comm	_BNX2_LINK_STATUS_LINK_DOWN,4,2 ; @BNX2_LINK_STATUS_LINK_DOWN
	.comm	_BNX2_LINK_STATUS,4,2           ; @BNX2_LINK_STATUS
	.no_dead_strip	_bnx2_report_fw_link
.subsections_via_symbols
