	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdrv_close
_netdrv_close:                          ## @netdrv_close
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movl	8(%r14), %r15d
	movq	_IntrStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NETDRV_R16
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DPRINTK
	leaq	32(%r12), %rdi
	callq	_del_timer_sync
	leaq	28(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_ChipCmd@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_NETDRV_R8
	movq	_ChipCmdClear@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_NETDRV_W8
	movq	_IntrMask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_NETDRV_W16
	movq	_RxMissed@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_NETDRV_R32
	addl	%eax, 4(%r14)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_NETDRV_W32
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	callq	_netdrv_tx_clear
	movl	20(%r12), %edi
	movq	_RX_BUF_TOT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r12), %rdx
	movl	24(%r12), %ecx
	callq	_pci_free_consistent
	movl	20(%r12), %edi
	movq	_TX_BUF_TOT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rdx
	movl	16(%r12), %ecx
	callq	_pci_free_consistent
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movq	_Cfg9346@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_Cfg9346_Unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NETDRV_W8
	movq	_Config1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_NETDRV_W8
	movl	(%rbx), %edi
	movq	_Cfg9346_Lock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NETDRV_W8
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Shutting down ethercard, status was 0x%4.4x.\n"

	.comm	_IntrStatus,4,2                 ## @IntrStatus
	.comm	_ChipCmd,4,2                    ## @ChipCmd
	.comm	_ChipCmdClear,4,2               ## @ChipCmdClear
	.comm	_IntrMask,4,2                   ## @IntrMask
	.comm	_RxMissed,4,2                   ## @RxMissed
	.comm	_RX_BUF_TOT_LEN,4,2             ## @RX_BUF_TOT_LEN
	.comm	_TX_BUF_TOT_LEN,4,2             ## @TX_BUF_TOT_LEN
	.comm	_Cfg9346,4,2                    ## @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ## @Cfg9346_Unlock
	.comm	_Config1,4,2                    ## @Config1
	.comm	_Cfg9346_Lock,4,2               ## @Cfg9346_Lock
L_.str.2:                               ## @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netdrv_close
_netdrv_close:                          ; @netdrv_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	mov	x0, x20
	bl	_netif_stop_queue
Lloh2:
	adrp	x8, _IntrStatus@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IntrStatus@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w21, [x20, #8]
	bl	_NETDRV_R16
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTK
	add	x0, x19, #32
	bl	_del_timer_sync
	add	x21, x19, #28
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh7:
	adrp	x8, _ChipCmd@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ChipCmd@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_NETDRV_R8
Lloh10:
	adrp	x8, _ChipCmdClear@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ChipCmdClear@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w1, w8, w0
	mov	x0, x22
	bl	_NETDRV_W8
Lloh13:
	adrp	x8, _IntrMask@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IntrMask@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_NETDRV_W16
Lloh16:
	adrp	x22, _RxMissed@GOTPAGE
Lloh17:
	ldr	x22, [x22, _RxMissed@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_NETDRV_R32
	ldr	w8, [x20, #4]
	add	w8, w8, w0
	str	w8, [x20, #4]
	ldr	w0, [x22]
	mov	w1, #0
	bl	_NETDRV_W32
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20]
	mov	x1, x20
	bl	_free_irq
	mov	x0, x20
	bl	_netdrv_tx_clear
Lloh18:
	adrp	x8, _RX_BUF_TOT_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RX_BUF_TOT_LEN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldp	w0, w3, [x19, #20]
	bl	_pci_free_consistent
Lloh21:
	adrp	x8, _TX_BUF_TOT_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TX_BUF_TOT_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	x2, [x19]
	ldp	w3, w0, [x19, #16]
	bl	_pci_free_consistent
	stp	xzr, xzr, [x19]
Lloh24:
	adrp	x19, _Cfg9346@GOTPAGE
Lloh25:
	ldr	x19, [x19, _Cfg9346@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _Cfg9346_Unlock@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Cfg9346_Unlock@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_NETDRV_W8
Lloh29:
	adrp	x8, _Config1@GOTPAGE
Lloh30:
	ldr	x8, [x8, _Config1@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_NETDRV_W8
	ldr	w0, [x19]
Lloh32:
	adrp	x8, _Cfg9346_Lock@GOTPAGE
Lloh33:
	ldr	x8, [x8, _Cfg9346_Lock@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_NETDRV_W8
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTK
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Shutting down ethercard, status was 0x%4.4x.\n"

	.comm	_IntrStatus,4,2                 ; @IntrStatus
	.comm	_ChipCmd,4,2                    ; @ChipCmd
	.comm	_ChipCmdClear,4,2               ; @ChipCmdClear
	.comm	_IntrMask,4,2                   ; @IntrMask
	.comm	_RxMissed,4,2                   ; @RxMissed
	.comm	_RX_BUF_TOT_LEN,4,2             ; @RX_BUF_TOT_LEN
	.comm	_TX_BUF_TOT_LEN,4,2             ; @TX_BUF_TOT_LEN
	.comm	_Cfg9346,4,2                    ; @Cfg9346
	.comm	_Cfg9346_Unlock,4,2             ; @Cfg9346_Unlock
	.comm	_Config1,4,2                    ; @Config1
	.comm	_Cfg9346_Lock,4,2               ; @Cfg9346_Lock
l_.str.2:                               ; @.str.2
	.asciz	"EXIT\n"

	.no_dead_strip	_netdrv_close
.subsections_via_symbols
