	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dnet_reset_hw
_dnet_reset_hw:                         ## @dnet_reset_hw
	.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
	movq	_DNET_INTERNAL_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DNET_INTERNAL_MODE_FCEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dnet_writew_mac
	movq	_DNET_FIFO_RX_CMD_AF_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RX_FIFO_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dnet_writel
	movq	_DNET_FIFO_TX_DATA_AE_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TX_FIFO_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_dnet_writel
	movq	_DNET_SYS_CTL_RXFIFOFLUSH@GOTPCREL(%rip), %rax
	movq	_DNET_SYS_CTL_TXFIFOFLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_SYS_CTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_dnet_writel
	movl	$1, %edi
	callq	_msleep
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dnet_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DNET_INTERNAL_MODE_REG,4,2     ## @DNET_INTERNAL_MODE_REG
	.comm	_DNET_INTERNAL_MODE_FCEN,4,2    ## @DNET_INTERNAL_MODE_FCEN
	.comm	_DNET_FIFO_RX_CMD_AF_TH,4,2     ## @DNET_FIFO_RX_CMD_AF_TH
	.comm	_RX_FIFO_TH,4,2                 ## @RX_FIFO_TH
	.comm	_DNET_FIFO_TX_DATA_AE_TH,4,2    ## @DNET_FIFO_TX_DATA_AE_TH
	.comm	_TX_FIFO_TH,4,2                 ## @TX_FIFO_TH
	.comm	_DNET_SYS_CTL_RXFIFOFLUSH,4,2   ## @DNET_SYS_CTL_RXFIFOFLUSH
	.comm	_DNET_SYS_CTL_TXFIFOFLUSH,4,2   ## @DNET_SYS_CTL_TXFIFOFLUSH
	.comm	_SYS_CTL,4,2                    ## @SYS_CTL
	.no_dead_strip	_dnet_reset_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dnet_reset_hw
_dnet_reset_hw:                         ; @dnet_reset_hw
	.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
Lloh0:
	adrp	x8, _DNET_INTERNAL_MODE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DNET_INTERNAL_MODE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DNET_INTERNAL_MODE_FCEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DNET_INTERNAL_MODE_FCEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_dnet_writew_mac
Lloh6:
	adrp	x8, _DNET_FIFO_RX_CMD_AF_TH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DNET_FIFO_RX_CMD_AF_TH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _RX_FIFO_TH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_FIFO_TH@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dnet_writel
Lloh12:
	adrp	x8, _DNET_FIFO_TX_DATA_AE_TH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DNET_FIFO_TX_DATA_AE_TH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _TX_FIFO_TH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TX_FIFO_TH@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dnet_writel
Lloh18:
	adrp	x8, _DNET_SYS_CTL_RXFIFOFLUSH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DNET_SYS_CTL_RXFIFOFLUSH@GOTPAGEOFF]
Lloh20:
	adrp	x9, _DNET_SYS_CTL_TXFIFOFLUSH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DNET_SYS_CTL_TXFIFOFLUSH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh24:
	adrp	x20, _SYS_CTL@GOTPAGE
Lloh25:
	ldr	x20, [x20, _SYS_CTL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_dnet_writel
	mov	w0, #1
	bl	_msleep
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dnet_writel
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DNET_INTERNAL_MODE_REG,4,2     ; @DNET_INTERNAL_MODE_REG
	.comm	_DNET_INTERNAL_MODE_FCEN,4,2    ; @DNET_INTERNAL_MODE_FCEN
	.comm	_DNET_FIFO_RX_CMD_AF_TH,4,2     ; @DNET_FIFO_RX_CMD_AF_TH
	.comm	_RX_FIFO_TH,4,2                 ; @RX_FIFO_TH
	.comm	_DNET_FIFO_TX_DATA_AE_TH,4,2    ; @DNET_FIFO_TX_DATA_AE_TH
	.comm	_TX_FIFO_TH,4,2                 ; @TX_FIFO_TH
	.comm	_DNET_SYS_CTL_RXFIFOFLUSH,4,2   ; @DNET_SYS_CTL_RXFIFOFLUSH
	.comm	_DNET_SYS_CTL_TXFIFOFLUSH,4,2   ; @DNET_SYS_CTL_TXFIFOFLUSH
	.comm	_SYS_CTL,4,2                    ; @SYS_CTL
	.no_dead_strip	_dnet_reset_hw
.subsections_via_symbols
