	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __netxen_nic_down
___netxen_nic_down:                     ## @__netxen_nic_down
	.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), %rax
	movq	_NETXEN_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___NX_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%rbx), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	_NX_FW_CAPABILITY_LINK_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_netxen_linkevent_request
LBB0_4:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movl	24(%rbx), %edi
	callq	_NX_IS_REVISION_P3
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_netxen_p3_free_mac_list
LBB0_8:
	movq	_NETXEN_NIU_NON_PROMISC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	_netxen_napi_disable
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_netxen_release_tx_buffers      ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ## @NETXEN_ADAPTER_UP_MAGIC
	.comm	___NX_DEV_UP,4,2                ## @__NX_DEV_UP
	.comm	_NX_FW_CAPABILITY_LINK_NOTIFICATION,4,2 ## @NX_FW_CAPABILITY_LINK_NOTIFICATION
	.comm	_NETXEN_NIU_NON_PROMISC_MODE,4,2 ## @NETXEN_NIU_NON_PROMISC_MODE
	.no_dead_strip	___netxen_nic_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __netxen_nic_down
___netxen_nic_down:                     ; @__netxen_nic_down
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETXEN_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, ___NX_DEV_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___NX_DEV_UP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #40
	bl	_test_and_clear_bit
	cbz	w0, LBB0_9
; %bb.2:
	bl	_smp_mb
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x20
	bl	_netif_tx_disable
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _NX_FW_CAPABILITY_LINK_NOTIFICATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NX_FW_CAPABILITY_LINK_NOTIFICATION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_netxen_linkevent_request
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	ldr	w0, [x19, #24]
	bl	_NX_IS_REVISION_P3
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_netxen_p3_free_mac_list
LBB0_8:
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _NETXEN_NIU_NON_PROMISC_MODE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETXEN_NIU_NON_PROMISC_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_netxen_napi_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netxen_release_tx_buffers
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_ADAPTER_UP_MAGIC,8,3    ; @NETXEN_ADAPTER_UP_MAGIC
	.comm	___NX_DEV_UP,4,2                ; @__NX_DEV_UP
	.comm	_NX_FW_CAPABILITY_LINK_NOTIFICATION,4,2 ; @NX_FW_CAPABILITY_LINK_NOTIFICATION
	.comm	_NETXEN_NIU_NON_PROMISC_MODE,4,2 ; @NETXEN_NIU_NON_PROMISC_MODE
	.no_dead_strip	___netxen_nic_down
.subsections_via_symbols
