	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function el3_close
_el3_close:                             ## @el3_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, %r13
	movl	(%rdi), %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	8(%rax), %r12
	movl	4(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DEBUG
	movq	%r12, %rdi
	callq	_pcmcia_dev_present
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_StatsDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rax, %rbx
	addq	%r15, %rsi
	callq	_outw
	movq	_RxDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	callq	_outw
	movq	_TxDisable@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	%r15, %rsi
	callq	_outw
	xorl	%edi, %edi
	callq	_EL3WINDOW
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_update_stats
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_SetIntrEnb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EL3_CMD@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	callq	_outw
LBB0_2:
	decl	(%r12)
	movq	%r13, %rdi
	callq	_netif_stop_queue
	movq	%r14, %rdi
	callq	_del_timer_sync
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: shutting down ethercard.\n"

	.comm	_StatsDisable,4,2               ## @StatsDisable
	.comm	_EL3_CMD,8,3                    ## @EL3_CMD
	.comm	_RxDisable,4,2                  ## @RxDisable
	.comm	_TxDisable,4,2                  ## @TxDisable
	.comm	_SetIntrEnb,4,2                 ## @SetIntrEnb
	.no_dead_strip	_el3_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function el3_close
_el3_close:                             ; @el3_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	w23, [x0]
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
	mov	x0, x21
	bl	_pcmcia_dev_present
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _StatsDisable@GOTPAGE
Lloh3:
	ldr	x8, [x8, _StatsDisable@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x24, _EL3_CMD@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EL3_CMD@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outw
Lloh7:
	adrp	x8, _RxDisable@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RxDisable@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outw
Lloh10:
	adrp	x8, _TxDisable@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TxDisable@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outw
	mov	w0, #0
	bl	_EL3WINDOW
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_update_stats
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh13:
	adrp	x8, _SetIntrEnb@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SetIntrEnb@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outw
LBB0_2:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	mov	x0, x19
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_del_timer_sync
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: shutting down ethercard.\n"

	.comm	_StatsDisable,4,2               ; @StatsDisable
	.comm	_EL3_CMD,8,3                    ; @EL3_CMD
	.comm	_RxDisable,4,2                  ; @RxDisable
	.comm	_TxDisable,4,2                  ; @TxDisable
	.comm	_SetIntrEnb,4,2                 ; @SetIntrEnb
	.no_dead_strip	_el3_close
.subsections_via_symbols
