	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns83820_stop
_ns83820_stop:                          ## @ns83820_stop
	.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
	callq	_PRIV
	movq	%rax, %rbx
	leaq	24(%rax), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_ns83820_disable_interrupts
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_synchronize_irq
	movq	_CR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ns83820_do_reset
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_synchronize_irq
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_ISR_TXURN@GOTPCREL(%rip), %rax
	movq	_ISR_TXIDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ISR_TXERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISR_TXDESC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISR_TXOK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	callq	_ns83820_cleanup_rx
	movq	%rbx, %rdi
	callq	_ns83820_cleanup_tx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_RST,4,2                     ## @CR_RST
	.comm	_ISR_TXURN,4,2                  ## @ISR_TXURN
	.comm	_ISR_TXIDLE,4,2                 ## @ISR_TXIDLE
	.comm	_ISR_TXERR,4,2                  ## @ISR_TXERR
	.comm	_ISR_TXDESC,4,2                 ## @ISR_TXDESC
	.comm	_ISR_TXOK,4,2                   ## @ISR_TXOK
	.no_dead_strip	_ns83820_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns83820_stop
_ns83820_stop:                          ; @ns83820_stop
	.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
	bl	_PRIV
	mov	x19, x0
	add	x0, x0, #24
	bl	_del_timer_sync
	mov	x0, x19
	bl	_ns83820_disable_interrupts
	str	xzr, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_synchronize_irq
Lloh0:
	adrp	x8, _CR_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CR_RST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ns83820_do_reset
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_synchronize_irq
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irq
Lloh3:
	adrp	x8, _ISR_TXURN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISR_TXURN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ISR_TXIDLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISR_TXIDLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ISR_TXERR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISR_TXERR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ISR_TXDESC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISR_TXDESC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _ISR_TXOK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ISR_TXOK@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irq
	mov	x0, x19
	bl	_ns83820_cleanup_rx
	mov	x0, x19
	bl	_ns83820_cleanup_tx
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_RST,4,2                     ; @CR_RST
	.comm	_ISR_TXURN,4,2                  ; @ISR_TXURN
	.comm	_ISR_TXIDLE,4,2                 ; @ISR_TXIDLE
	.comm	_ISR_TXERR,4,2                  ; @ISR_TXERR
	.comm	_ISR_TXDESC,4,2                 ; @ISR_TXDESC
	.comm	_ISR_TXOK,4,2                   ; @ISR_TXOK
	.no_dead_strip	_ns83820_stop
.subsections_via_symbols
