	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ave_global_reset
_ave_global_reset:                      ## @ave_global_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, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_AVE_CFGR_FLE@GOTPCREL(%rip), %rax
	movq	_AVE_CFGR_IPFCEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_AVE_CFGR_CHE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	8(%r15), %edi
	callq	_phy_interface_mode_is_rgmii
	movl	$0, %ecx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AVE_CFGR_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	movq	_AVE_CFGR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_AVE_RSTCTRL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_AVE_RSTCTRL_RMIIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	_AVE_GRR_GRST@GOTPCREL(%rip), %rbx
	movq	_AVE_GRR_PHYRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rbx), %edi
	movq	_AVE_GRR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movl	$20, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movl	$40, %edi
	callq	_msleep
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	$40, %edi
	callq	_msleep
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_AVE_RSTCTRL_RMIIRST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r13), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ave_irq_disable_all            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVE_CFGR_FLE,4,2               ## @AVE_CFGR_FLE
	.comm	_AVE_CFGR_IPFCEN,4,2            ## @AVE_CFGR_IPFCEN
	.comm	_AVE_CFGR_CHE,4,2               ## @AVE_CFGR_CHE
	.comm	_AVE_CFGR_MII,4,2               ## @AVE_CFGR_MII
	.comm	_AVE_CFGR,8,3                   ## @AVE_CFGR
	.comm	_AVE_RSTCTRL,8,3                ## @AVE_RSTCTRL
	.comm	_AVE_RSTCTRL_RMIIRST,4,2        ## @AVE_RSTCTRL_RMIIRST
	.comm	_AVE_GRR_GRST,4,2               ## @AVE_GRR_GRST
	.comm	_AVE_GRR_PHYRST,4,2             ## @AVE_GRR_PHYRST
	.comm	_AVE_GRR,8,3                    ## @AVE_GRR
	.no_dead_strip	_ave_global_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ave_global_reset
_ave_global_reset:                      ; @ave_global_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _AVE_CFGR_FLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVE_CFGR_FLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVE_CFGR_IPFCEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVE_CFGR_IPFCEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _AVE_CFGR_CHE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVE_CFGR_CHE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
	ldr	w0, [x0, #8]
	bl	_phy_interface_mode_is_rgmii
Lloh9:
	adrp	x8, _AVE_CFGR_MII@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVE_CFGR_MII@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w0, w21, w8
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _AVE_CFGR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVE_CFGR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20]
Lloh15:
	adrp	x21, _AVE_RSTCTRL@GOTPAGE
Lloh16:
	ldr	x21, [x21, _AVE_RSTCTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh17:
	adrp	x22, _AVE_RSTCTRL_RMIIRST@GOTPAGE
Lloh18:
	ldr	x22, [x22, _AVE_RSTCTRL_RMIIRST@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w0, w0, w8
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
Lloh19:
	adrp	x23, _AVE_GRR_GRST@GOTPAGE
Lloh20:
	ldr	x23, [x23, _AVE_GRR_GRST@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh21:
	adrp	x9, _AVE_GRR_PHYRST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _AVE_GRR_PHYRST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20]
Lloh24:
	adrp	x24, _AVE_GRR@GOTPAGE
Lloh25:
	ldr	x24, [x24, _AVE_GRR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #20
	bl	_msleep
	ldr	w0, [x23]
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #40
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	w0, #40
	bl	_msleep
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ave_irq_disable_all
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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	_AVE_CFGR_FLE,4,2               ; @AVE_CFGR_FLE
	.comm	_AVE_CFGR_IPFCEN,4,2            ; @AVE_CFGR_IPFCEN
	.comm	_AVE_CFGR_CHE,4,2               ; @AVE_CFGR_CHE
	.comm	_AVE_CFGR_MII,4,2               ; @AVE_CFGR_MII
	.comm	_AVE_CFGR,8,3                   ; @AVE_CFGR
	.comm	_AVE_RSTCTRL,8,3                ; @AVE_RSTCTRL
	.comm	_AVE_RSTCTRL_RMIIRST,4,2        ; @AVE_RSTCTRL_RMIIRST
	.comm	_AVE_GRR_GRST,4,2               ; @AVE_GRR_GRST
	.comm	_AVE_GRR_PHYRST,4,2             ; @AVE_GRR_PHYRST
	.comm	_AVE_GRR,8,3                    ; @AVE_GRR
	.no_dead_strip	_ave_global_reset
.subsections_via_symbols
