	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfx_close
_dfx_close:                             ## @dfx_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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DBG_printk
	movq	_PI_PDQ_K_REG_HOST_INT_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dfx_port_write_long
	movq	_PI_PDATA_A_RESET_M_SKIP_ST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dfx_hw_dma_uninit
	movq	%rbx, %rdi
	callq	_dfx_xmt_flush
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	$0, 24(%rbx)
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_dfx_rcv_flush
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In dfx_close...\n"

	.comm	_PI_PDQ_K_REG_HOST_INT_ENB,4,2  ## @PI_PDQ_K_REG_HOST_INT_ENB
	.comm	_PI_HOST_INT_K_DISABLE_ALL_INTS,4,2 ## @PI_HOST_INT_K_DISABLE_ALL_INTS
	.comm	_PI_PDATA_A_RESET_M_SKIP_ST,4,2 ## @PI_PDATA_A_RESET_M_SKIP_ST
	.no_dead_strip	_dfx_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfx_close
_dfx_close:                             ; @dfx_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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG_printk
Lloh2:
	adrp	x8, _PI_PDQ_K_REG_HOST_INT_ENB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PI_PDQ_K_REG_HOST_INT_ENB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PI_HOST_INT_K_DISABLE_ALL_INTS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_dfx_port_write_long
Lloh8:
	adrp	x8, _PI_PDATA_A_RESET_M_SKIP_ST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PI_PDATA_A_RESET_M_SKIP_ST@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_dfx_hw_dma_uninit
	mov	x0, x20
	bl	_dfx_xmt_flush
	stp	xzr, xzr, [x20, #16]
	str	xzr, [x20, #8]
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_dfx_rcv_flush
	mov	x0, x19
	bl	_netif_stop_queue
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In dfx_close...\n"

	.comm	_PI_PDQ_K_REG_HOST_INT_ENB,4,2  ; @PI_PDQ_K_REG_HOST_INT_ENB
	.comm	_PI_HOST_INT_K_DISABLE_ALL_INTS,4,2 ; @PI_HOST_INT_K_DISABLE_ALL_INTS
	.comm	_PI_PDATA_A_RESET_M_SKIP_ST,4,2 ; @PI_PDATA_A_RESET_M_SKIP_ST
	.no_dead_strip	_dfx_close
.subsections_via_symbols
