	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcnet32_close
_pcnet32_close:                         ## @pcnet32_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	20(%rax), %rdi
	callq	_del_timer_sync
	movq	%r14, %rdi
	callq	_netif_stop_queue
	leaq	16(%rbx), %rdi
	callq	_napi_disable
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	%r15, %rdi
	movl	$112, %esi
	callq	*16(%rax)
	movl	%eax, 12(%r14)
	movq	_ifdown@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	8(%rbx), %rax
	movq	_CSR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	callq	*16(%rax)
	leaq	L_.str(%rip), %r8
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	%r14, %rcx
	movl	%eax, %r9d
	callq	_netif_printk
	movq	8(%rbx), %rax
	movq	_CSR0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CSR0_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	%r15, %rdi
	movl	$20, %esi
	movl	$4, %edx
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_pcnet32_purge_rx_ring
	movq	%r14, %rdi
	callq	_pcnet32_purge_tx_ring
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ifdown,4,2                     ## @ifdown
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shutting down ethercard, status was %2.2x\n"

	.comm	_CSR0,4,2                       ## @CSR0
	.comm	_CSR0_STOP,4,2                  ## @CSR0_STOP
	.no_dead_strip	_pcnet32_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcnet32_close
_pcnet32_close:                         ; @pcnet32_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0]
	bl	_netdev_priv
	mov	x20, x0
	add	x0, x0, #20
	bl	_del_timer_sync
	mov	x0, x19
	bl	_netif_stop_queue
	add	x0, x20, #16
	bl	_napi_disable
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
	mov	x0, x21
	mov	w1, #112
	blr	x8
	str	w0, [x19, #12]
Lloh0:
	adrp	x8, _ifdown@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ifdown@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #16]
Lloh6:
	adrp	x24, _CSR0@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CSR0@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	blr	x8
	mov	x5, x0
Lloh8:
	adrp	x4, l_.str@PAGE
Lloh9:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	bl	_netif_printk
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w1, [x24]
Lloh10:
	adrp	x9, _CSR0_STOP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CSR0_STOP@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	mov	x0, x21
	blr	x8
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x21
	mov	w1, #20
	mov	w2, #4
	blr	x8
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_pcnet32_purge_rx_ring
	mov	x0, x19
	bl	_pcnet32_purge_tx_ring
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ifdown,4,2                     ; @ifdown
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shutting down ethercard, status was %2.2x\n"

	.comm	_CSR0,4,2                       ; @CSR0
	.comm	_CSR0_STOP,4,2                  ; @CSR0_STOP
	.no_dead_strip	_pcnet32_close
.subsections_via_symbols
