	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ag71xx_fast_reset
_ag71xx_fast_reset:                     ## @ag71xx_fast_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_ag71xx_hw_stop
	xorl	%eax, %eax
	callq	_wmb
	movq	_AG71XX_REG_MII_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ag71xx_rr
	movl	%eax, %r14d
	movq	_AG71XX_REG_RX_DESC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ag71xx_rr
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ag71xx_tx_packets
	movl	32(%rbx), %edi
	callq	_reset_control_assert
	movl	$10, %edi
	callq	_udelay
	movl	32(%rbx), %edi
	callq	_reset_control_deassert
	movl	$10, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_ag71xx_dma_reset
	movq	%rbx, %rdi
	callq	_ag71xx_hw_setup
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	24(%rbx), %rdi
	callq	_netdev_reset_queue
	movq	_AG71XX_REG_MAC_MFL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	callq	_ag71xx_max_frame_len
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ag71xx_wr
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_ag71xx_wr
	movq	_AG71XX_REG_TX_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ag71xx_wr
	movq	_AG71XX_REG_MII_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ag71xx_wr
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ag71xx_hw_set_macaddr          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AG71XX_REG_MII_CFG,4,2         ## @AG71XX_REG_MII_CFG
	.comm	_AG71XX_REG_RX_DESC,4,2         ## @AG71XX_REG_RX_DESC
	.comm	_AG71XX_REG_MAC_MFL,4,2         ## @AG71XX_REG_MAC_MFL
	.comm	_AG71XX_REG_TX_DESC,4,2         ## @AG71XX_REG_TX_DESC
	.no_dead_strip	_ag71xx_fast_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ag71xx_fast_reset
_ag71xx_fast_reset:                     ; @ag71xx_fast_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x23, [x0, #24]
	bl	_ag71xx_hw_stop
	bl	_wmb
Lloh0:
	adrp	x24, _AG71XX_REG_MII_CFG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AG71XX_REG_MII_CFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ag71xx_rr
	mov	x20, x0
Lloh2:
	adrp	x25, _AG71XX_REG_RX_DESC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AG71XX_REG_RX_DESC@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_ag71xx_rr
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1
	bl	_ag71xx_tx_packets
	ldr	w0, [x19, #32]
	bl	_reset_control_assert
	mov	w0, #10
	bl	_udelay
	ldr	w0, [x19, #32]
	bl	_reset_control_deassert
	mov	w0, #10
	bl	_udelay
	mov	x0, x19
	bl	_ag71xx_dma_reset
	mov	x0, x19
	bl	_ag71xx_hw_setup
	stp	xzr, xzr, [x19, #8]
	ldr	x0, [x19, #24]
	bl	_netdev_reset_queue
Lloh4:
	adrp	x8, _AG71XX_REG_MAC_MFL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AG71XX_REG_MAC_MFL@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_ag71xx_max_frame_len
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ag71xx_wr
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_ag71xx_wr
Lloh7:
	adrp	x8, _AG71XX_REG_TX_DESC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AG71XX_REG_TX_DESC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_ag71xx_wr
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_ag71xx_wr
	ldr	w1, [x23]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ag71xx_hw_set_macaddr
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AG71XX_REG_MII_CFG,4,2         ; @AG71XX_REG_MII_CFG
	.comm	_AG71XX_REG_RX_DESC,4,2         ; @AG71XX_REG_RX_DESC
	.comm	_AG71XX_REG_MAC_MFL,4,2         ; @AG71XX_REG_MAC_MFL
	.comm	_AG71XX_REG_TX_DESC,4,2         ; @AG71XX_REG_TX_DESC
	.no_dead_strip	_ag71xx_fast_reset
.subsections_via_symbols
