	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elp_close
_elp_close:                             ## @elp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_elp_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	_netif_stop_queue
	movq	%rbx, %rdi
	callq	_elp_get_stats
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_outb_control
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	(%rbx), %edi
	callq	_free_dma
	movq	(%r14), %rbx
	movq	_DMA_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_order
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_free_pages
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_elp_debug,4,2                  ## @elp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: request to close device\n"

	.comm	_DMA_BUFFER_SIZE,4,2            ## @DMA_BUFFER_SIZE
	.no_dead_strip	_elp_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elp_close
_elp_close:                             ; @elp_close
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _elp_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _elp_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	_netif_stop_queue
	mov	x0, x20
	bl	_elp_get_stats
	mov	w0, #0
	mov	x1, x20
	bl	_outb_control
	ldr	w0, [x20, #4]
	mov	x1, x20
	bl	_free_irq
	ldr	w0, [x20]
	bl	_free_dma
	ldr	x19, [x19]
Lloh5:
	adrp	x8, _DMA_BUFFER_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_BUFFER_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_get_order
	mov	x1, x0
	mov	x0, x19
	bl	_free_pages
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_elp_debug,4,2                  ; @elp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: request to close device\n"

	.comm	_DMA_BUFFER_SIZE,4,2            ; @DMA_BUFFER_SIZE
	.no_dead_strip	_elp_close
.subsections_via_symbols
