	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_soft_reset_gether
_sh_eth_soft_reset_gether:              ## @sh_eth_soft_reset_gether
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_EDSR_ENALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EDSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sh_eth_write
	movq	_EDMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EDMR_SRST_GETHER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_sh_eth_modify
	movq	%rbx, %rdi
	callq	_sh_eth_check_soft_reset
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_TDLAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_TDFAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_TDFXR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_TDFFR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_RDLAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_RDFAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_RDFXR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	_RDFFR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.2:
	movq	_CSMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sh_eth_write
	movq	(%r14), %rax
LBB0_3:
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_sh_eth_select_mii
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDSR_ENALL,4,2                 ## @EDSR_ENALL
	.comm	_EDSR,4,2                       ## @EDSR
	.comm	_EDMR,4,2                       ## @EDMR
	.comm	_EDMR_SRST_GETHER,4,2           ## @EDMR_SRST_GETHER
	.comm	_TDLAR,4,2                      ## @TDLAR
	.comm	_TDFAR,4,2                      ## @TDFAR
	.comm	_TDFXR,4,2                      ## @TDFXR
	.comm	_TDFFR,4,2                      ## @TDFFR
	.comm	_RDLAR,4,2                      ## @RDLAR
	.comm	_RDFAR,4,2                      ## @RDFAR
	.comm	_RDFXR,4,2                      ## @RDFXR
	.comm	_RDFFR,4,2                      ## @RDFFR
	.comm	_CSMR,4,2                       ## @CSMR
	.no_dead_strip	_sh_eth_soft_reset_gether
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_soft_reset_gether
_sh_eth_soft_reset_gether:              ; @sh_eth_soft_reset_gether
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _EDSR_ENALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDSR_ENALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EDSR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDSR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sh_eth_write
Lloh6:
	adrp	x8, _EDMR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EDMR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _EDMR_SRST_GETHER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EDMR_SRST_GETHER@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_sh_eth_modify
	mov	x0, x19
	bl	_sh_eth_check_soft_reset
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
Lloh12:
	adrp	x8, _TDLAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TDLAR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh15:
	adrp	x8, _TDFAR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDFAR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh18:
	adrp	x8, _TDFXR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TDFXR@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh21:
	adrp	x8, _TDFFR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TDFFR@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh24:
	adrp	x8, _RDLAR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RDLAR@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh27:
	adrp	x8, _RDFAR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RDFAR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh30:
	adrp	x8, _RDFXR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RDFXR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
Lloh33:
	adrp	x8, _RDFFR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _RDFFR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
; %bb.2:
Lloh36:
	adrp	x8, _CSMR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CSMR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sh_eth_write
	ldr	x8, [x20]
LBB0_3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_sh_eth_select_mii
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EDSR_ENALL,4,2                 ; @EDSR_ENALL
	.comm	_EDSR,4,2                       ; @EDSR
	.comm	_EDMR,4,2                       ; @EDMR
	.comm	_EDMR_SRST_GETHER,4,2           ; @EDMR_SRST_GETHER
	.comm	_TDLAR,4,2                      ; @TDLAR
	.comm	_TDFAR,4,2                      ; @TDFAR
	.comm	_TDFXR,4,2                      ; @TDFXR
	.comm	_TDFFR,4,2                      ; @TDFFR
	.comm	_RDLAR,4,2                      ; @RDLAR
	.comm	_RDFAR,4,2                      ; @RDFAR
	.comm	_RDFXR,4,2                      ; @RDFXR
	.comm	_RDFFR,4,2                      ; @RDFFR
	.comm	_CSMR,4,2                       ; @CSMR
	.no_dead_strip	_sh_eth_soft_reset_gether
.subsections_via_symbols
