	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_el3_debug@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_2:
	movq	%rbx, %rdi
	callq	_el3_down
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	xorl	%edi, %edi
	callq	_EL3WINDOW
	movq	(%r15), %rax
	movq	_EL3_EISA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_WN0_IRQ@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movl	$3840, %edi                     ## imm = 0xF00
	movq	%r14, %rsi
	callq	_outw
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_el3_debug,4,2                  ## @el3_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Shutting down ethercard.\n"

	.comm	_EL3_EISA,8,3                   ## @EL3_EISA
	.comm	_WN0_IRQ,8,3                    ## @WN0_IRQ
	.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	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	x20, x0
	ldrsw	x21, [x0]
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _el3_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _el3_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	w1, [x20, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_2:
	mov	x0, x20
	bl	_el3_down
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_free_irq
	mov	w0, #0
	bl	_EL3WINDOW
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _EL3_EISA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EL3_EISA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _WN0_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WN0_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	w0, #3840
	bl	_outw
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_el3_debug,4,2                  ; @el3_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Shutting down ethercard.\n"

	.comm	_EL3_EISA,8,3                   ; @EL3_EISA
	.comm	_WN0_IRQ,8,3                    ; @WN0_IRQ
	.no_dead_strip	_el3_close
.subsections_via_symbols
