	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_eeh_nic_unload
_bnx2x_eeh_nic_unload:                  ## @bnx2x_eeh_nic_unload
	.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, %rbx
	movq	_BNX2X_STATE_CLOSING_WAIT4_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	movq	_BNX2X_RX_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	callq	_CNIC_LOADED
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CNIC_CTL_STOP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_cnic_notify
LBB0_2:
	movq	%rbx, %rdi
	callq	_bnx2x_tx_disable
	movq	%rbx, %rdi
	callq	_bnx2x_del_all_napi
	movq	%rbx, %rdi
	callq	_CNIC_LOADED
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_bnx2x_del_all_napi_cnic
LBB0_4:
	movl	(%rbx), %edi
	callq	_netdev_reset_tc
	leaq	20(%rbx), %rdi
	callq	_del_timer_sync
	leaq	16(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	12(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	leaq	4(%rbx), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_down_timeout
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_STATS_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_up
LBB0_6:
	movq	%rbx, %rdi
	callq	_bnx2x_save_statistics
	movl	(%rbx), %edi
	callq	_netif_carrier_off
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_STATE_CLOSING_WAIT4_HALT,4,2 ## @BNX2X_STATE_CLOSING_WAIT4_HALT
	.comm	_BNX2X_RX_MODE_NONE,4,2         ## @BNX2X_RX_MODE_NONE
	.comm	_CNIC_CTL_STOP_CMD,4,2          ## @CNIC_CTL_STOP_CMD
	.comm	_HZ,4,2                         ## @HZ
	.comm	_STATS_STATE_DISABLED,4,2       ## @STATS_STATE_DISABLED
	.no_dead_strip	_bnx2x_eeh_nic_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_eeh_nic_unload
_bnx2x_eeh_nic_unload:                  ; @bnx2x_eeh_nic_unload
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _BNX2X_STATE_CLOSING_WAIT4_HALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_STATE_CLOSING_WAIT4_HALT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BNX2X_RX_MODE_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2X_RX_MODE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	bl	_CNIC_LOADED
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CNIC_CTL_STOP_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNIC_CTL_STOP_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_cnic_notify
LBB0_2:
	mov	x0, x19
	bl	_bnx2x_tx_disable
	mov	x0, x19
	bl	_bnx2x_del_all_napi
	mov	x0, x19
	bl	_CNIC_LOADED
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bnx2x_del_all_napi_cnic
LBB0_4:
	mov	x20, x19
	ldr	w0, [x20], #4
	bl	_netdev_reset_tc
	add	x0, x19, #20
	bl	_del_timer_sync
	add	x0, x19, #16
	bl	_cancel_delayed_work_sync
	add	x0, x19, #12
	bl	_cancel_delayed_work_sync
Lloh9:
	adrp	x8, _HZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	mov	x0, x20
	bl	_down_timeout
	cbnz	w0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _STATS_STATE_DISABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STATS_STATE_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_up
LBB0_6:
	mov	x0, x19
	bl	_bnx2x_save_statistics
	ldr	w0, [x19]
	bl	_netif_carrier_off
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_STATE_CLOSING_WAIT4_HALT,4,2 ; @BNX2X_STATE_CLOSING_WAIT4_HALT
	.comm	_BNX2X_RX_MODE_NONE,4,2         ; @BNX2X_RX_MODE_NONE
	.comm	_CNIC_CTL_STOP_CMD,4,2          ; @CNIC_CTL_STOP_CMD
	.comm	_HZ,4,2                         ; @HZ
	.comm	_STATS_STATE_DISABLED,4,2       ; @STATS_STATE_DISABLED
	.no_dead_strip	_bnx2x_eeh_nic_unload
.subsections_via_symbols
