	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function korina_close
_korina_close:                          ## @korina_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	40(%rax), %rdi
	callq	_del_timer
	movl	12(%rbx), %edi
	callq	_disable_irq
	movl	8(%rbx), %edi
	callq	_disable_irq
	movl	4(%rbx), %edi
	callq	_disable_irq
	movl	(%rbx), %edi
	callq	_disable_irq
	movq	%r14, %rdi
	callq	_korina_abort_tx
	movq	32(%rbx), %rdi
	callq	_readl
	movq	_DMA_STAT_FINI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DMA_STAT_ERR@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	32(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r14, %rdi
	callq	_korina_abort_rx
	movq	24(%rbx), %rdi
	callq	_readl
	movq	_DMA_STAT_DONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DMA_STAT_HALT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%r15), %eax
	movq	24(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r14, %rdi
	callq	_korina_free_ring
	leaq	16(%rbx), %rdi
	callq	_napi_disable
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_STAT_FINI,4,2              ## @DMA_STAT_FINI
	.comm	_DMA_STAT_ERR,4,2               ## @DMA_STAT_ERR
	.comm	_DMA_STAT_DONE,4,2              ## @DMA_STAT_DONE
	.comm	_DMA_STAT_HALT,4,2              ## @DMA_STAT_HALT
	.no_dead_strip	_korina_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function korina_close
_korina_close:                          ; @korina_close
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x0, x0, #40
	bl	_del_timer
	ldr	w0, [x20, #12]
	bl	_disable_irq
	ldr	w0, [x20, #8]
	bl	_disable_irq
	ldr	w0, [x20, #4]
	bl	_disable_irq
	ldr	w0, [x20]
	bl	_disable_irq
	mov	x0, x19
	bl	_korina_abort_tx
	ldr	x0, [x20, #32]
	bl	_readl
Lloh0:
	adrp	x8, _DMA_STAT_FINI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_STAT_FINI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh3:
	adrp	x21, _DMA_STAT_ERR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DMA_STAT_ERR@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	x1, [x20, #32]
	bl	_writel
	mov	x0, x19
	bl	_korina_abort_rx
	ldr	x0, [x20, #24]
	bl	_readl
Lloh5:
	adrp	x8, _DMA_STAT_DONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_STAT_DONE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DMA_STAT_HALT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_STAT_HALT@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x21]
	orr	w0, w8, w9
	ldr	x1, [x20, #24]
	bl	_writel
	mov	x0, x19
	bl	_korina_free_ring
	add	x0, x20, #16
	bl	_napi_disable
	ldr	w0, [x20, #12]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_STAT_FINI,4,2              ; @DMA_STAT_FINI
	.comm	_DMA_STAT_ERR,4,2               ; @DMA_STAT_ERR
	.comm	_DMA_STAT_DONE,4,2              ; @DMA_STAT_DONE
	.comm	_DMA_STAT_HALT,4,2              ; @DMA_STAT_HALT
	.no_dead_strip	_korina_close
.subsections_via_symbols
