	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function de4x5_close
_de4x5_close:                           ## @de4x5_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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_disable_ast
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	_de4x5_debug@GOTPCREL(%rip), %rax
	movq	_DEBUG_CLOSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %r15d
	movq	_DE4X5_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inl
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_printk
LBB0_2:
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_de4x5_free_rx_buffs
	movq	%rbx, %rdi
	callq	_de4x5_free_tx_buffs
	movq	_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_yawn
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_de4x5_debug,4,2                ## @de4x5_debug
	.comm	_DEBUG_CLOSE,4,2                ## @DEBUG_CLOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Shutting down ethercard, status was %8.8x.\n"

	.comm	_DE4X5_STS,4,2                  ## @DE4X5_STS
	.comm	_DISABLE_IRQs,4,2               ## @DISABLE_IRQs
	.comm	_STOP_DE4X5,4,2                 ## @STOP_DE4X5
	.comm	_CLOSED,4,2                     ## @CLOSED
	.comm	_SLEEP,4,2                      ## @SLEEP
	.no_dead_strip	_de4x5_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function de4x5_close
_de4x5_close:                           ; @de4x5_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
	mov	x0, x19
	bl	_disable_ast
	mov	x0, x19
	bl	_netif_stop_queue
Lloh0:
	adrp	x8, _de4x5_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _de4x5_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DEBUG_CLOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEBUG_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w21, [x19, #4]
Lloh6:
	adrp	x8, _DE4X5_STS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DE4X5_STS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_inl
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_printk
LBB0_2:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
Lloh11:
	adrp	x8, _CLOSED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLOSED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	bl	_de4x5_free_rx_buffs
	mov	x0, x19
	bl	_de4x5_free_tx_buffs
Lloh14:
	adrp	x8, _SLEEP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SLEEP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_yawn
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_de4x5_debug,4,2                ; @de4x5_debug
	.comm	_DEBUG_CLOSE,4,2                ; @DEBUG_CLOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Shutting down ethercard, status was %8.8x.\n"

	.comm	_DE4X5_STS,4,2                  ; @DE4X5_STS
	.comm	_DISABLE_IRQs,4,2               ; @DISABLE_IRQs
	.comm	_STOP_DE4X5,4,2                 ; @STOP_DE4X5
	.comm	_CLOSED,4,2                     ; @CLOSED
	.comm	_SLEEP,4,2                      ; @SLEEP
	.no_dead_strip	_de4x5_close
.subsections_via_symbols
