	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_shutdown_chip
_bnx2_shutdown_chip:                    ## @bnx2_shutdown_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BNX2_FLAG_NO_WOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 8(%rdi)
	jne	LBB0_3
## %bb.4:
	movq	_BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_BNX2_DRV_MSG_CODE_SUSPEND_WOL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	popq	%rbp
	jmp	_bnx2_reset_chip                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_FLAG_NO_WOL,4,2           ## @BNX2_FLAG_NO_WOL
	.comm	_BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN,4,2 ## @BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN
	.comm	_BNX2_DRV_MSG_CODE_SUSPEND_WOL,4,2 ## @BNX2_DRV_MSG_CODE_SUSPEND_WOL
	.comm	_BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL,4,2 ## @BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL
	.no_dead_strip	_bnx2_shutdown_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_shutdown_chip
_bnx2_shutdown_chip:                    ; @bnx2_shutdown_chip
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNX2_FLAG_NO_WOL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_FLAG_NO_WOL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	b	_bnx2_reset_chip
LBB0_2:
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _BNX2_DRV_MSG_CODE_SUSPEND_WOL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNX2_DRV_MSG_CODE_SUSPEND_WOL@GOTPAGEOFF]
Lloh8:
	adrp	x10, _BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	b	_bnx2_reset_chip
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_FLAG_NO_WOL,4,2           ; @BNX2_FLAG_NO_WOL
	.comm	_BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN,4,2 ; @BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN
	.comm	_BNX2_DRV_MSG_CODE_SUSPEND_WOL,4,2 ; @BNX2_DRV_MSG_CODE_SUSPEND_WOL
	.comm	_BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL,4,2 ; @BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL
	.no_dead_strip	_bnx2_shutdown_chip
.subsections_via_symbols
