	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_eth_adjust_link
_sh_eth_adjust_link:                    ## @sh_eth_adjust_link
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	32(%rax), %r14
	movq	(%r14), %rax
	movq	_PHY_DOWN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.10:
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.11:
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	$-1, (%rbx)
	jmp	LBB0_9
LBB0_1:
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	xorl	%r15d, %r15d
	cmpl	(%rbx), %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, (%rbx)
	movq	24(%rbx), %rax
	movq	8(%rax), %rcx
	movl	$1, %r15d
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	*%rcx
LBB0_4:
	movq	16(%r14), %rax
	cmpq	8(%rbx), %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, 8(%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	movl	$1, %r15d
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	*%rcx
LBB0_7:
	movq	16(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.8:
	movq	_ECMR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	addq	%r12, %rdi
	callq	_ctrl_inl
	movq	_ECMR_TXF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_ECMR_DM@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	addq	(%r15), %r12
	movq	%r12, %rsi
	callq	_ctrl_outl
	movq	(%r14), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_9
LBB0_12:
	testl	%r15d, %r15d
	je	LBB0_13
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_print_status               ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_DOWN,8,3                   ## @PHY_DOWN
	.comm	_ECMR,8,3                       ## @ECMR
	.comm	_ECMR_TXF,4,2                   ## @ECMR_TXF
	.comm	_ECMR_DM,4,2                    ## @ECMR_DM
	.no_dead_strip	_sh_eth_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_eth_adjust_link
_sh_eth_adjust_link:                    ; @sh_eth_adjust_link
	.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	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _PHY_DOWN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PHY_DOWN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_16
; %bb.2:
	stp	xzr, x8, [x20, #8]
	mov	w8, #-1
	str	w8, [x20]
	b	LBB0_15
LBB0_3:
	ldr	x22, [x21]
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #0
	b	LBB0_8
LBB0_5:
	str	w8, [x20]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x21
	blr	x8
LBB0_7:
	mov	w8, #1
LBB0_8:
	ldr	x9, [x19, #16]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.eq	LBB0_12
; %bb.9:
	str	x9, [x20, #8]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x21
	blr	x8
LBB0_11:
	mov	w8, #1
LBB0_12:
	ldr	x9, [x20, #16]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
Lloh2:
	adrp	x21, _ECMR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ECMR@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x22
	bl	_ctrl_inl
Lloh4:
	adrp	x8, _ECMR_TXF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ECMR_TXF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh7:
	adrp	x9, _ECMR_DM@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ECMR_DM@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x21]
	add	x1, x8, x22
	bl	_ctrl_outl
	ldr	x8, [x19]
	str	x8, [x20, #16]
	b	LBB0_15
LBB0_14:
	cbz	w8, LBB0_16
LBB0_15:
	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	_phy_print_status
LBB0_16:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_DOWN,8,3                   ; @PHY_DOWN
	.comm	_ECMR,8,3                       ; @ECMR
	.comm	_ECMR_TXF,4,2                   ; @ECMR_TXF
	.comm	_ECMR_DM,4,2                    ; @ECMR_DM
	.no_dead_strip	_sh_eth_adjust_link
.subsections_via_symbols
