	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_test_loopback
_bnx2x_test_loopback:                   ## @bnx2x_test_loopback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_BP_NOMCP
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movl	(%r14), %edi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnx2x_netif_stop
	movq	%r14, %rdi
	callq	_bnx2x_acquire_phy_lock
	movq	_BNX2X_PHY_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bnx2x_run_loopback
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DP
	movq	_BNX2X_PHY_LOOPBACK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_BNX2X_LOOPBACK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_BNX2X_MAC_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bnx2x_run_loopback
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_DP
	movq	_BNX2X_MAC_LOOPBACK_FAILED@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_bnx2x_release_phy_lock
	movq	%r14, %rdi
	callq	_bnx2x_netif_start
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_LOOPBACK_FAILED,4,2      ## @BNX2X_LOOPBACK_FAILED
	.comm	_BNX2X_PHY_LOOPBACK,4,2         ## @BNX2X_PHY_LOOPBACK
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  PHY loopback failed  (res %d)\n"

	.comm	_BNX2X_PHY_LOOPBACK_FAILED,4,2  ## @BNX2X_PHY_LOOPBACK_FAILED
	.comm	_BNX2X_MAC_LOOPBACK,4,2         ## @BNX2X_MAC_LOOPBACK
L_.str.1:                               ## @.str.1
	.asciz	"  MAC loopback failed  (res %d)\n"

	.comm	_BNX2X_MAC_LOOPBACK_FAILED,4,2  ## @BNX2X_MAC_LOOPBACK_FAILED
	.no_dead_strip	_bnx2x_test_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_test_loopback
_bnx2x_test_loopback:                   ; @bnx2x_test_loopback
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_BP_NOMCP
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19]
	bl	_netif_running
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2x_netif_stop
	mov	x0, x19
	bl	_bnx2x_acquire_phy_lock
Lloh0:
	adrp	x8, _BNX2X_PHY_LOOPBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_PHY_LOOPBACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_run_loopback
Lloh3:
	adrp	x21, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
	cbz	w0, LBB0_6
; %bb.4:
	mov	x2, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh7:
	adrp	x8, _BNX2X_PHY_LOOPBACK_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNX2X_PHY_LOOPBACK_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _BNX2X_LOOPBACK_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2X_LOOPBACK_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	b	LBB0_10
LBB0_6:
	mov	w20, #0
LBB0_7:
Lloh13:
	adrp	x8, _BNX2X_MAC_LOOPBACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_MAC_LOOPBACK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_run_loopback
	cbz	w0, LBB0_9
; %bb.8:
	mov	x2, x0
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh18:
	adrp	x8, _BNX2X_MAC_LOOPBACK_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2X_MAC_LOOPBACK_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_9:
	mov	x0, x19
	bl	_bnx2x_release_phy_lock
	mov	x0, x19
	bl	_bnx2x_netif_start
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_LOOPBACK_FAILED,4,2      ; @BNX2X_LOOPBACK_FAILED
	.comm	_BNX2X_PHY_LOOPBACK,4,2         ; @BNX2X_PHY_LOOPBACK
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  PHY loopback failed  (res %d)\n"

	.comm	_BNX2X_PHY_LOOPBACK_FAILED,4,2  ; @BNX2X_PHY_LOOPBACK_FAILED
	.comm	_BNX2X_MAC_LOOPBACK,4,2         ; @BNX2X_MAC_LOOPBACK
l_.str.1:                               ; @.str.1
	.asciz	"  MAC loopback failed  (res %d)\n"

	.comm	_BNX2X_MAC_LOOPBACK_FAILED,4,2  ; @BNX2X_MAC_LOOPBACK_FAILED
	.no_dead_strip	_bnx2x_test_loopback
.subsections_via_symbols
