	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_self_test
_bnx2x_self_test:                       ## @bnx2x_self_test
	.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	$24, %rsp
	.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, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movl	20(%rax), %edi
	callq	_pci_num_vf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_2:
	movq	(%r13), %rax
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r15), %ecx
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ecx, %edx
	movq	_ETH_TEST_FL_EXTERNAL_LB@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	sarl	$2, %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r13, %rdi
	callq	_BNX2X_NUM_TESTS
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r13, %rdi
	callq	_bnx2x_test_nvram
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_IS_MF
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	shlq	$4, %rcx
	movl	$1, (%r14,%rcx)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_6:
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movq	_LINK_STATUS_SERDES_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, 8(%r13)
	setg	%r12b
	movl	12(%r13), %ebx
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_28
## %bb.10:
	movq	%r13, %rdi
	callq	_IS_MF
	testl	%eax, %eax
	je	LBB0_11
LBB0_28:
	movq	%r13, %rdi
	callq	_bnx2x_test_intr
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r13, %rdi
	callq	_IS_MF
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	shlq	$4, %rcx
	movl	$1, 4(%rcx,%r14)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_30:
	testl	%ebx, %ebx
	je	LBB0_35
## %bb.31:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_bnx2x_link_test
	testq	%rax, %rax
	je	LBB0_37
## %bb.32:
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_bnx2x_link_test
	testq	%rax, %rax
	jne	LBB0_33
	jmp	LBB0_37
LBB0_3:
	movl	16(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_err
	jmp	LBB0_36
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_35:
	movq	%r13, %rdi
	callq	_IS_MF
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	shlq	$4, %rcx
	movl	$1, 8(%rcx,%r14)
LBB0_36:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_37:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_BP_PORT
	movq	_NIG_REG_EGRESS_UMP0_IN_EN@GOTPCREL(%rip), %rcx
	shll	$2, %eax
	movslq	%eax, %rbx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_REG_RD
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_NIG_REG_EGRESS_UMP0_IN_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_REG_WR
	movq	_UNLOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_nic_unload
	movq	_LOAD_DIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_nic_load
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_8
LBB0_13:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1, %esi
	movl	%r12d, %edx
	callq	_bnx2x_wait_for_link
	movq	%r13, %rdi
	callq	_bnx2x_test_registers
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$1, (%r14)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_15:
	movq	%r13, %rdi
	callq	_bnx2x_test_memory
	testq	%rax, %rax
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_17
## %bb.16:
	movl	$1, 4(%r14)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_17:
	movq	%r13, %rdi
	callq	_bnx2x_test_loopback
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_20
LBB0_18:
	movl	(%r15), %eax
LBB0_20:
	movq	_ETH_TEST_FL_EXTERNAL_LB@GOTPCREL(%rip), %rcx
	movq	_UNLOAD_NORMAL@GOTPCREL(%rip), %rdx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.21:
	movq	%r13, %rdi
	callq	_bnx2x_test_ext_loopback
	movl	%eax, 12(%r14)
	testl	%eax, %eax
	je	LBB0_22
## %bb.23:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rcx
	movl	(%r15), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	jmp	LBB0_24
LBB0_22:
	movl	(%r15), %eax
LBB0_24:
	movq	_UNLOAD_NORMAL@GOTPCREL(%rip), %rdx
	movq	_ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_25:
	movl	(%rdx), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_nic_unload
	movq	_NIG_REG_EGRESS_UMP0_IN_EN@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	(%rax), %rsi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_REG_WR
	movq	_LOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_nic_load
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_8
LBB0_27:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_bnx2x_wait_for_link
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VFs are enabled, can not perform self test\n"

	.comm	_BNX2X_RECOVERY_DONE,8,3        ## @BNX2X_RECOVERY_DONE
L_.str.1:                               ## @.str.1
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
L_.str.2:                               ## @.str.2
	.asciz	"Self-test command parameters: offline = %d, external_lb = %d\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ## @ETH_TEST_FL_EXTERNAL_LB
L_.str.3:                               ## @.str.3
	.asciz	"Interface is down\n"

	.comm	_LINK_STATUS_SERDES_LINK,4,2    ## @LINK_STATUS_SERDES_LINK
	.comm	_NIG_REG_EGRESS_UMP0_IN_EN,8,3  ## @NIG_REG_EGRESS_UMP0_IN_EN
	.comm	_UNLOAD_NORMAL,4,2              ## @UNLOAD_NORMAL
	.comm	_LOAD_DIAG,4,2                  ## @LOAD_DIAG
L_.str.4:                               ## @.str.4
	.asciz	"Can't perform self-test, nic_load (for offline) failed\n"

	.comm	_ETH_TEST_FL_EXTERNAL_LB_DONE,4,2 ## @ETH_TEST_FL_EXTERNAL_LB_DONE
	.comm	_LOAD_NORMAL,4,2                ## @LOAD_NORMAL
L_.str.5:                               ## @.str.5
	.asciz	"Can't perform self-test, nic_load (for online) failed\n"

	.no_dead_strip	_bnx2x_self_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_self_test
_bnx2x_self_test:                       ; @bnx2x_self_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0, #20]
	bl	_pci_num_vf
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DP
LBB0_3:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.4:
Lloh8:
	adrp	x25, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w8, [x19]
Lloh10:
	adrp	x24, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w9, w9, w8
Lloh12:
	adrp	x26, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGEOFF]
	ldr	w10, [x26]
	and	w8, w10, w8
	asr	w8, w8, #2
	stp	x9, x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x0, x21
	bl	_BNX2X_NUM_TESTS
	lsl	w2, w0, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	bl	_bnx2x_test_nvram
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_IS_MF
	cmp	w0, #0
	cset	w8, eq
	lsl	x8, x8, #4
	mov	w9, #1
	str	w9, [x20, x8]
Lloh16:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_17
; %bb.7:
Lloh19:
	adrp	x8, _LINK_STATUS_SERDES_LINK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LINK_STATUS_SERDES_LINK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w9, w23, [x21, #8]
	tst	w8, w9
	cset	w22, gt
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_IS_MF
	cbz	w0, LBB0_21
LBB0_9:
	mov	x0, x21
	bl	_bnx2x_test_intr
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_IS_MF
	cmp	w0, #0
	mov	w8, #4
	mov	w9, #20
	csel	x8, x9, x8, eq
	mov	w9, #1
	str	w9, [x20, x8]
Lloh22:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	cbz	w23, LBB0_18
; %bb.12:
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2x_link_test
	cbz	x0, LBB0_20
; %bb.13:
	mov	w23, #-100
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	adds	w23, w23, #1
	b.hs	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x0, x21
	mov	x1, x22
	bl	_bnx2x_link_test
	cbnz	x0, LBB0_14
	b	LBB0_20
LBB0_16:
	ldr	w0, [x21, #16]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_19
LBB0_17:
	ldr	w0, [x25]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_18:
	mov	x0, x21
	bl	_IS_MF
	cmp	w0, #0
	mov	w8, #8
	mov	w9, #24
	csel	x8, x9, x8, eq
	mov	w9, #1
	str	w9, [x20, x8]
LBB0_19:
Lloh29:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	mov	x0, x21
	bl	_BP_PORT
Lloh32:
	adrp	x27, _NIG_REG_EGRESS_UMP0_IN_EN@GOTPAGE
Lloh33:
	ldr	x27, [x27, _NIG_REG_EGRESS_UMP0_IN_EN@GOTPAGEOFF]
	ldr	x8, [x27]
	lsl	w9, w0, #2
	sxtw	x28, w9
	add	x1, x8, x28
	mov	x0, x21
	bl	_REG_RD
	mov	x24, x0
	ldr	x8, [x27]
	add	x1, x8, x28
	mov	x0, x21
	mov	w2, #0
	bl	_REG_WR
Lloh34:
	adrp	x8, _UNLOAD_NORMAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _UNLOAD_NORMAL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_bnx2x_nic_unload
Lloh37:
	adrp	x8, _LOAD_DIAG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _LOAD_DIAG@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bnx2x_nic_load
	cbz	w0, LBB0_23
; %bb.22:
Lloh40:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x25]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_23:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	bl	_bnx2x_wait_for_link
	mov	x0, x21
	bl	_bnx2x_test_registers
	cbz	x0, LBB0_25
; %bb.24:
	mov	w8, #1
	str	w8, [x20]
Lloh45:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_25:
	mov	x0, x21
	bl	_bnx2x_test_memory
	cbz	x0, LBB0_27
; %bb.26:
	mov	w8, #1
	str	w8, [x20, #4]
Lloh48:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_27:
	mov	x0, x21
	bl	_bnx2x_test_loopback
	str	w0, [x20, #8]
	cbz	w0, LBB0_29
; %bb.28:
Lloh51:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_30
LBB0_29:
	ldr	w8, [x19]
LBB0_30:
	ldr	w9, [x26]
	tst	w9, w8
Lloh54:
	adrp	x26, _UNLOAD_NORMAL@GOTPAGE
Lloh55:
	ldr	x26, [x26, _UNLOAD_NORMAL@GOTPAGEOFF]
	b.eq	LBB0_35
; %bb.31:
	mov	x0, x21
	bl	_bnx2x_test_ext_loopback
	str	w0, [x20, #12]
	cbz	w0, LBB0_33
; %bb.32:
Lloh56:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_34
LBB0_33:
	ldr	w8, [x19]
LBB0_34:
Lloh59:
	adrp	x9, _ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPAGE
Lloh60:
	ldr	x9, [x9, _ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_35:
	ldr	w1, [x26]
	mov	x0, x21
	mov	w2, #0
	bl	_bnx2x_nic_unload
	ldr	x8, [x27]
	add	x1, x8, x28
	mov	x0, x21
	mov	x2, x24
	bl	_REG_WR
Lloh62:
	adrp	x8, _LOAD_NORMAL@GOTPAGE
Lloh63:
	ldr	x8, [x8, _LOAD_NORMAL@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bnx2x_nic_load
	cbz	w0, LBB0_37
; %bb.36:
Lloh65:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w0, [x25]
Lloh68:
	adrp	x1, l_.str.5@PAGE
Lloh69:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_37:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_bnx2x_wait_for_link
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VFs are enabled, can not perform self test\n"

	.comm	_BNX2X_RECOVERY_DONE,8,3        ; @BNX2X_RECOVERY_DONE
l_.str.1:                               ; @.str.1
	.asciz	"Handling parity error recovery. Try again later\n"

	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
l_.str.2:                               ; @.str.2
	.asciz	"Self-test command parameters: offline = %d, external_lb = %d\n"

	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ; @ETH_TEST_FL_EXTERNAL_LB
l_.str.3:                               ; @.str.3
	.asciz	"Interface is down\n"

	.comm	_LINK_STATUS_SERDES_LINK,4,2    ; @LINK_STATUS_SERDES_LINK
	.comm	_NIG_REG_EGRESS_UMP0_IN_EN,8,3  ; @NIG_REG_EGRESS_UMP0_IN_EN
	.comm	_UNLOAD_NORMAL,4,2              ; @UNLOAD_NORMAL
	.comm	_LOAD_DIAG,4,2                  ; @LOAD_DIAG
l_.str.4:                               ; @.str.4
	.asciz	"Can't perform self-test, nic_load (for offline) failed\n"

	.comm	_ETH_TEST_FL_EXTERNAL_LB_DONE,4,2 ; @ETH_TEST_FL_EXTERNAL_LB_DONE
	.comm	_LOAD_NORMAL,4,2                ; @LOAD_NORMAL
l_.str.5:                               ; @.str.5
	.asciz	"Can't perform self-test, nic_load (for online) failed\n"

	.no_dead_strip	_bnx2x_self_test
.subsections_via_symbols
