	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_self_test
_bnxt_self_test:                        ## @bnxt_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
	pushq	%rax
	.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
	movl	$0, -48(%rbp)
	cmpl	$0, (%rax)
	je	LBB0_39
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_BNXT_SINGLE_PF
	testl	%eax, %eax
	je	LBB0_39
## %bb.2:
	movl	(%r12), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %eax
	movq	_ETH_TEST_FL_EXTERNAL_LB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.6:
	movq	8(%r12), %rcx
	movq	_BNXT_TEST_FL_EXT_LPBK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	sete	%r11b
	jmp	LBB0_7
LBB0_5:
	movb	$1, %r11b
LBB0_7:
	movq	_ETH_TEST_FL_OFFLINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.8:
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.40:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_warn                    ## TAILCALL
LBB0_9:
	movl	(%r12), %ecx
	movq	_BNXT_DRV_TESTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%ecx, %r8d
	subl	%edi, %r8d
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.11:
	movq	%rbx, %r10
	movq	8(%r12), %rsi
	movl	4(%rsi), %esi
	incl	%edi
	cmpl	%edi, %ecx
	jne	LBB0_13
## %bb.12:
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_13:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %ebx
	btsl	%ecx, %ebx
	testl	%eax, %edx
	cmovnel	%ebx, %r13d
	btl	%ecx, %esi
	cmovael	%ebx, %r13d
	movl	$2, %ebx
	shll	%cl, %ebx
	movl	%ebx, %edi
	orl	%r13d, %edi
	testl	%eax, %edx
	cmovnel	%edi, %r13d
	testl	%ebx, %esi
	cmovel	%edi, %r13d
	addl	$2, %ecx
	cmpl	%ecx, %r9d
	jne	LBB0_14
LBB0_15:
	testb	$1, %r8b
	movq	%r10, %rbx
	je	LBB0_17
## %bb.16:
	movl	%r13d, %edi
	btsl	%ecx, %edi
	testl	%eax, %edx
	cmovnel	%edi, %r13d
	btl	%ecx, %esi
	cmovael	%edi, %r13d
LBB0_17:
	testl	%eax, %edx
	je	LBB0_18
## %bb.19:
	movb	%r11b, -41(%rbp)                ## 1-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bnxt_close_nic
	testl	%eax, %eax
	jne	LBB0_39
## %bb.20:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnxt_run_fw_tests
	movq	_BNXT_MACLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_bnxt_hwrm_mac_loopback
	movl	$250, %edi
	callq	_msleep
	movq	%r12, %rdi
	callq	_bnxt_half_open_nic
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_bnxt_hwrm_mac_loopback
LBB0_3:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bnxt_run_fw_tests
LBB0_31:
	movq	%r12, %rdi
	callq	_bnxt_test_irq
	testq	%rax, %rax
	je	LBB0_33
LBB0_32:
	movq	_BNXT_IRQ_TEST_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_33:
	movl	(%r12), %eax
	movl	(%rbx), %esi
	cmpl	%esi, %eax
	jle	LBB0_39
## %bb.34:
	movl	-48(%rbp), %edx
	xorl	%ecx, %ecx
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %r8
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_35 Depth=1
	incq	%rcx
	movl	%eax, %edi
	subl	%esi, %edi
	movslq	%edi, %rdi
	cmpq	%rdi, %rcx
	jge	LBB0_39
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	shll	%cl, %edi
	btl	%ecx, %r13d
	jae	LBB0_38
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	andl	%edx, %edi
	jne	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=1
	movl	$1, (%r14,%rcx,4)
	movl	(%r8), %eax
	orl	%eax, (%r15)
	movl	(%r12), %eax
	movl	(%rbx), %esi
	jmp	LBB0_38
LBB0_22:
	movq	%r12, %rdi
	callq	_bnxt_run_loopback
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_25
LBB0_24:
	movq	_BNXT_MACLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%r14,%rax,4)
LBB0_25:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_bnxt_hwrm_mac_loopback
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_bnxt_hwrm_phy_loopback
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	%r12, %rdi
	callq	_bnxt_run_loopback
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	movq	_BNXT_PHYLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_27:
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_30
## %bb.28:
	movq	_ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_bnxt_hwrm_phy_loopback
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep
	movq	%r12, %rdi
	callq	_bnxt_run_loopback
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	_BNXT_EXTLPBK_TEST_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%r14,%rax,4)
	movq	_ETH_TEST_FL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_30:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bnxt_hwrm_phy_loopback
	movq	%r12, %rdi
	callq	_bnxt_half_close_nic
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_bnxt_open_nic
	testl	%eax, %eax
	jne	LBB0_32
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_TEST_FL_FAILED,4,2         ## @ETH_TEST_FL_FAILED
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ## @ETH_TEST_FL_EXTERNAL_LB
	.comm	_BNXT_TEST_FL_EXT_LPBK,4,2      ## @BNXT_TEST_FL_EXT_LPBK
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ## @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Offline tests cannot be run with active VFs\n"

	.comm	_BNXT_DRV_TESTS,4,2             ## @BNXT_DRV_TESTS
	.comm	_BNXT_MACLPBK_TEST_IDX,8,3      ## @BNXT_MACLPBK_TEST_IDX
	.comm	_BNXT_PHYLPBK_TEST_IDX,8,3      ## @BNXT_PHYLPBK_TEST_IDX
	.comm	_ETH_TEST_FL_EXTERNAL_LB_DONE,4,2 ## @ETH_TEST_FL_EXTERNAL_LB_DONE
	.comm	_BNXT_EXTLPBK_TEST_IDX,8,3      ## @BNXT_EXTLPBK_TEST_IDX
	.comm	_BNXT_IRQ_TEST_IDX,8,3          ## @BNXT_IRQ_TEST_IDX
	.no_dead_strip	_bnxt_self_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_self_test
_bnxt_self_test:                        ; @bnxt_self_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_netdev_priv
	str	wzr, [sp, #12]
	ldr	w8, [x0]
	cbz	w8, LBB0_17
; %bb.1:
	mov	x21, x0
	bl	_BNXT_SINGLE_PF
	cbz	w0, LBB0_17
; %bb.2:
	ldr	w8, [x21]
	lsl	w2, w8, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	mov	x0, x22
	bl	_netif_running
	cbz	w0, LBB0_16
; %bb.3:
	ldr	w9, [x19]
Lloh0:
	adrp	x8, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_TEST_FL_EXTERNAL_LB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _BNXT_TEST_FL_EXT_LPBK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BNXT_TEST_FL_EXT_LPBK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w24, eq
	b	LBB0_6
LBB0_5:
	mov	w24, #1
LBB0_6:
Lloh6:
	adrp	x8, _ETH_TEST_FL_OFFLINE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_TEST_FL_OFFLINE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ands	w8, w8, w9
	b.eq	LBB0_9
; %bb.7:
	ldr	x10, [x21, #16]
	cbz	x10, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_netdev_warn
LBB0_9:
	ldr	w9, [x21]
Lloh14:
	adrp	x23, _BNXT_DRV_TESTS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BNXT_DRV_TESTS@GOTPAGEOFF]
	ldr	w10, [x23]
	sub	w9, w9, w10
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.10:
	mov	w10, #0
	mov	w22, #0
	ldr	x11, [x21, #8]
	ldr	w11, [x11, #4]
	mov	w12, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w10
	orr	w14, w13, w22
	cmp	w8, #0
	csel	w15, w22, w14, eq
	tst	w11, w13
	csel	w22, w14, w15, eq
	add	w10, w10, #1
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.12:
	cbz	w8, LBB0_19
LBB0_13:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_bnxt_close_nic
	cbnz	w0, LBB0_17
; %bb.14:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_bnxt_run_fw_tests
Lloh16:
	adrp	x25, _BNXT_MACLPBK_TEST_IDX@GOTPAGE
Lloh17:
	ldr	x25, [x25, _BNXT_MACLPBK_TEST_IDX@GOTPAGEOFF]
	ldr	x8, [x25]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
	mov	x0, x21
	mov	w1, #1
	bl	_bnxt_hwrm_mac_loopback
	mov	w0, #250
	bl	_msleep
	mov	x0, x21
	bl	_bnxt_half_open_nic
	cbz	w0, LBB0_27
; %bb.15:
	mov	x0, x21
	mov	w1, #0
	bl	_bnxt_hwrm_mac_loopback
LBB0_16:
Lloh18:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_18:
	mov	w22, #0
	cbnz	w8, LBB0_13
LBB0_19:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_bnxt_run_fw_tests
LBB0_20:
	mov	x0, x21
	bl	_bnxt_test_irq
	cbz	x0, LBB0_22
LBB0_21:
Lloh21:
	adrp	x8, _BNXT_IRQ_TEST_IDX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BNXT_IRQ_TEST_IDX@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x20, x8, lsl #2]
Lloh24:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_22:
	ldr	w9, [x21]
	ldr	w10, [x23]
	cmp	w9, w10
	b.le	LBB0_17
; %bb.23:
	mov	x8, #0
	ldr	w11, [sp, #12]
	mov	w12, #1
Lloh27:
	adrp	x13, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh28:
	ldr	x13, [x13, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x8, #1
	sub	w14, w9, w10
	cmp	x8, w14, sxtw
	b.ge	LBB0_17
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	lsl	w14, w12, w8
	and	w15, w14, w22
	and	w14, w11, w14
	cmp	w15, #0
	ccmp	w14, #0, #0, ne
	b.ne	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	str	w12, [x20, x8, lsl #2]
	ldr	w9, [x13]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w9, [x21]
	ldr	w10, [x23]
	b	LBB0_24
LBB0_27:
	mov	x0, x21
	bl	_bnxt_run_loopback
	cbz	x0, LBB0_29
; %bb.28:
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]
	b	LBB0_30
LBB0_29:
	ldr	x8, [x25]
	str	wzr, [x20, x8, lsl #2]
LBB0_30:
	mov	x0, x21
	mov	w1, #0
	bl	_bnxt_hwrm_mac_loopback
	mov	w25, #1
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_bnxt_hwrm_phy_loopback
	mov	w0, #1000
	bl	_msleep
	mov	x0, x21
	bl	_bnxt_run_loopback
	cbz	x0, LBB0_32
; %bb.31:
Lloh32:
	adrp	x8, _BNXT_PHYLPBK_TEST_IDX@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BNXT_PHYLPBK_TEST_IDX@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	w25, [x20, x8, lsl #2]
Lloh35:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_32:
	tbnz	w24, #0, LBB0_35
; %bb.33:
Lloh38:
	adrp	x8, _ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ETH_TEST_FL_EXTERNAL_LB_DONE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w24, #1
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_bnxt_hwrm_phy_loopback
	mov	w0, #1000
	bl	_msleep
	mov	x0, x21
	bl	_bnxt_run_loopback
	cbz	x0, LBB0_35
; %bb.34:
Lloh41:
	adrp	x8, _BNXT_EXTLPBK_TEST_IDX@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BNXT_EXTLPBK_TEST_IDX@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	w24, [x20, x8, lsl #2]
Lloh44:
	adrp	x8, _ETH_TEST_FL_FAILED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ETH_TEST_FL_FAILED@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_35:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_bnxt_hwrm_phy_loopback
	mov	x0, x21
	bl	_bnxt_half_close_nic
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_bnxt_open_nic
	cbnz	w0, LBB0_21
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_TEST_FL_FAILED,4,2         ; @ETH_TEST_FL_FAILED
	.comm	_ETH_TEST_FL_EXTERNAL_LB,4,2    ; @ETH_TEST_FL_EXTERNAL_LB
	.comm	_BNXT_TEST_FL_EXT_LPBK,4,2      ; @BNXT_TEST_FL_EXT_LPBK
	.comm	_ETH_TEST_FL_OFFLINE,4,2        ; @ETH_TEST_FL_OFFLINE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Offline tests cannot be run with active VFs\n"

	.comm	_BNXT_DRV_TESTS,4,2             ; @BNXT_DRV_TESTS
	.comm	_BNXT_MACLPBK_TEST_IDX,8,3      ; @BNXT_MACLPBK_TEST_IDX
	.comm	_BNXT_PHYLPBK_TEST_IDX,8,3      ; @BNXT_PHYLPBK_TEST_IDX
	.comm	_ETH_TEST_FL_EXTERNAL_LB_DONE,4,2 ; @ETH_TEST_FL_EXTERNAL_LB_DONE
	.comm	_BNXT_EXTLPBK_TEST_IDX,8,3      ; @BNXT_EXTLPBK_TEST_IDX
	.comm	_BNXT_IRQ_TEST_IDX,8,3          ; @BNXT_IRQ_TEST_IDX
	.no_dead_strip	_bnxt_self_test
.subsections_via_symbols
