	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function c2_down
_c2_down:                               ## @c2_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %r15
	movq	%rax, %rdi
	callq	_netif_msg_ifdown
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_2:
	movq	%r14, %rdi
	callq	_c2_tx_interrupt
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	_C2_IDIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	$1, %edi
	callq	_writel
	movq	_C2_NIMR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_c2_reset
	movq	%rbx, %rdi
	callq	_c2_tx_clean
	movq	%rbx, %rdi
	callq	_c2_rx_clean
	movl	16(%rbx), %edi
	callq	_kfree
	movl	12(%rbx), %edi
	callq	_kfree
	movl	(%r15), %edi
	movl	8(%rbx), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	callq	_pci_free_consistent
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: disabling interface\n"

	.comm	_C2_IDIS,8,3                    ## @C2_IDIS
	.comm	_C2_NIMR0,8,3                   ## @C2_NIMR0
	.no_dead_strip	_c2_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function c2_down
_c2_down:                               ; @c2_down
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x21, [x0, #24]
	bl	_netif_msg_ifdown
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_2:
	mov	x0, x20
	bl	_c2_tx_interrupt
	mov	x0, x20
	bl	_netif_stop_queue
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _C2_IDIS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _C2_IDIS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _C2_NIMR0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _C2_NIMR0@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	bl	_c2_reset
	mov	x0, x19
	bl	_c2_tx_clean
	mov	x0, x19
	bl	_c2_rx_clean
	ldr	w0, [x19, #16]
	bl	_kfree
	ldr	w0, [x19, #12]
	bl	_kfree
	ldr	w0, [x21]
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	bl	_pci_free_consistent
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: disabling interface\n"

	.comm	_C2_IDIS,8,3                    ; @C2_IDIS
	.comm	_C2_NIMR0,8,3                   ; @C2_NIMR0
	.no_dead_strip	_c2_down
.subsections_via_symbols
