	.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
	callq	_ag71xx_get_pdata
	movq	24(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_AR71XX_RESET_GE0_MAC@GOTPCREL(%rip), %rcx
	movq	_AR71XX_RESET_GE1_MAC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	(%rcx), %r12d
	andl	(%rax), %r12d
	movq	%rbx, %rdi
	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	%r12d, %edi
	callq	_ath79_device_reset_set
	movl	$10, %edi
	callq	_udelay
	movl	%r12d, %edi
	callq	_ath79_device_reset_clear
	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	_AR71XX_RESET_GE0_MAC,4,2       ## @AR71XX_RESET_GE0_MAC
	.comm	_AR71XX_RESET_GE1_MAC,4,2       ## @AR71XX_RESET_GE1_MAC
	.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
	bl	_ag71xx_get_pdata
	ldr	x23, [x19, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AR71XX_RESET_GE0_MAC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR71XX_RESET_GE0_MAC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AR71XX_RESET_GE1_MAC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AR71XX_RESET_GE1_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w22, w9, w8
	mov	x0, x19
	bl	_ag71xx_hw_stop
	bl	_wmb
Lloh6:
	adrp	x24, _AG71XX_REG_MII_CFG@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AG71XX_REG_MII_CFG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ag71xx_rr
	mov	x20, x0
Lloh8:
	adrp	x25, _AG71XX_REG_RX_DESC@GOTPAGE
Lloh9:
	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
	mov	x0, x22
	bl	_ath79_device_reset_set
	mov	w0, #10
	bl	_udelay
	mov	x0, x22
	bl	_ath79_device_reset_clear
	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
Lloh10:
	adrp	x8, _AG71XX_REG_MAC_MFL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AG71XX_REG_MAC_MFL@GOTPAGEOFF]
Lloh12:
	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
Lloh13:
	adrp	x8, _AG71XX_REG_TX_DESC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AG71XX_REG_TX_DESC@GOTPAGEOFF]
Lloh15:
	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	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR71XX_RESET_GE0_MAC,4,2       ; @AR71XX_RESET_GE0_MAC
	.comm	_AR71XX_RESET_GE1_MAC,4,2       ; @AR71XX_RESET_GE1_MAC
	.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
