	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_analyze_link_error
_bnx2x_analyze_link_error:              ## @bnx2x_analyze_link_error
	.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
	xorl	%r12d, %r12d
	testl	%ecx, (%rsi)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	setne	%r12b
	xorl	%r15d, %r15d
	cmpl	%edx, %r12d
	je	LBB0_6
## %bb.1:
	movl	%ecx, %ebx
	movq	%rsi, %r13
	movl	%edx, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpl	$128, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	cmpl	$129, %ebx
	leaq	L_.str(%rip), %rsi
	cmovneq	%rcx, %rsi
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	xorl	%eax, %eax
	callq	_DP
	movl	(%r15), %edi
	movl	4(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_DP
	movq	_LINK_STATUS_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	notl	%eax
	andl	8(%r13), %eax
	orl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 8(%r13)
	movl	$0, 4(%r13)
	orl	%ebx, (%r13)
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movq	_LED_MODE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	orl	8(%r13), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%r13)
	movl	$1, 4(%r13)
	notl	%ebx
	andl	%ebx, (%r13)
	movq	_LED_MODE_OPER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NIG_REG_EGRESS_DRAIN0_MODE@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rsi
	shlq	$2, %rsi
	addq	(%rax), %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bnx2x_sync_link
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_bnx2x_set_led
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_update_mng
	movq	_PERIODIC_FLAGS_LINK_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r13)
	movl	$1, %r15d
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_bnx2x_notify_link_changed
LBB0_6:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Analyze Remote Fault\n"

L_.str.1:                               ## @.str.1
	.asciz	"Analyze TX Fault\n"

L_.str.2:                               ## @.str.2
	.asciz	"Analyze UNKNOWN\n"

L_.str.3:                               ## @.str.3
	.asciz	"Link changed:[%x %x]->%x\n"

	.comm	_LINK_STATUS_LINK_UP,4,2        ## @LINK_STATUS_LINK_UP
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ## @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_LED_MODE_OFF,4,2               ## @LED_MODE_OFF
	.comm	_LED_MODE_OPER,4,2              ## @LED_MODE_OPER
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_PERIODIC_FLAGS_LINK_EVENT,4,2  ## @PERIODIC_FLAGS_LINK_EVENT
	.no_dead_strip	_bnx2x_analyze_link_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_analyze_link_error
_bnx2x_analyze_link_error:              ; @bnx2x_analyze_link_error
	.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
	ldr	w8, [x1]
	tst	w8, w3
	cset	w26, ne
	cmp	w26, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x19, x5
	mov	x24, x4
	mov	x23, x3
	mov	x25, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	x21, [x0, #8]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w3, #128
Lloh4:
	adrp	x10, l_.str@PAGE
Lloh5:
	add	x10, x10, l_.str@PAGEOFF
	csel	x8, x9, x8, eq
	cmp	w3, #129
	csel	x1, x10, x8, eq
Lloh6:
	adrp	x27, _NETIF_MSG_LINK@GOTPAGE
Lloh7:
	ldr	x27, [x27, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_DP
	ldr	w0, [x27]
	ldr	w8, [x20, #4]
	stp	x26, x25, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DP
Lloh10:
	adrp	x8, _LINK_STATUS_LINK_UP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LINK_STATUS_LINK_UP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbz	w25, LBB0_4
; %bb.3:
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	orr	w8, w8, w24
	stp	wzr, w8, [x20, #4]
	ldr	w8, [x20]
	orr	w8, w8, w23
	str	w8, [x20]
Lloh13:
	adrp	x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	w2, #1
	bl	_REG_WR
Lloh16:
	adrp	x8, _LED_MODE_OFF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LED_MODE_OFF@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_4:
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	bic	w8, w8, w24
	str	w8, [x20, #8]
	mov	w8, #1
	ldr	w9, [x20]
	bic	w9, w9, w23
	stp	w9, w8, [x20]
Lloh19:
	adrp	x8, _LED_MODE_OPER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LED_MODE_OPER@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	adrp	x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NIG_REG_EGRESS_DRAIN0_MODE@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldrsw	x9, [x22]
	add	x1, x8, x9, lsl #2
	mov	x0, x21
	mov	w2, #0
	bl	_REG_WR
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	bl	_bnx2x_sync_link
Lloh25:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_bnx2x_set_led
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_bnx2x_update_mng
Lloh28:
	adrp	x8, _PERIODIC_FLAGS_LINK_EVENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PERIODIC_FLAGS_LINK_EVENT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [x20, #12]
	orr	w8, w9, w8
	str	w8, [x20, #12]
	cbz	w19, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_bnx2x_notify_link_changed
LBB0_7:
	mov	w0, #1
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Analyze Remote Fault\n"

l_.str.1:                               ; @.str.1
	.asciz	"Analyze TX Fault\n"

l_.str.2:                               ; @.str.2
	.asciz	"Analyze UNKNOWN\n"

l_.str.3:                               ; @.str.3
	.asciz	"Link changed:[%x %x]->%x\n"

	.comm	_LINK_STATUS_LINK_UP,4,2        ; @LINK_STATUS_LINK_UP
	.comm	_NIG_REG_EGRESS_DRAIN0_MODE,8,3 ; @NIG_REG_EGRESS_DRAIN0_MODE
	.comm	_LED_MODE_OFF,4,2               ; @LED_MODE_OFF
	.comm	_LED_MODE_OPER,4,2              ; @LED_MODE_OPER
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_PERIODIC_FLAGS_LINK_EVENT,4,2  ; @PERIODIC_FLAGS_LINK_EVENT
	.no_dead_strip	_bnx2x_analyze_link_error
.subsections_via_symbols
