	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_check_link
_jme_check_link:                        ## @jme_check_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_JME_SPDRSV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movb	$0, -112(%rbp)
	cmpq	$0, 32(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_jme_linkstat_from_phy
	jmp	LBB0_3
LBB0_2:
	movq	_JME_PHY_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_jread32
LBB0_3:
	movl	%eax, %r14d
	movq	_PHY_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r14d, %r12d
	je	LBB0_37
## %bb.4:
	movq	_PHY_LINK_AUTONEG_COMPLETE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	movl	%r13d, -116(%rbp)               ## 4-byte Spill
	je	LBB0_8
## %bb.5:
	movq	_PHY_LINK_SPEEDDPU_RESOLVED@GOTPCREL(%rip), %r12
	testl	%r14d, (%r12)
	je	LBB0_6
## %bb.16:
	testl	%ebx, %ebx
	jne	LBB0_18
	jmp	LBB0_17
LBB0_37:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_39
## %bb.38:
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	leaq	L_.str.11(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_netif_info
	movl	$0, (%r15)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_netif_carrier_off
	jmp	LBB0_39
LBB0_8:
	movl	12(%r15), %edi
	movl	40(%r15), %esi
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_jme_mdio_read
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	testl	%eax, %ecx
	sete	%dl
	xorl	$129, %edx
	testl	%eax, %ecx
	movq	_BMCR_SPEED1000@GOTPCREL(%rip), %rcx
	movl	$130, %r14d
	cmovnel	%edx, %r14d
	testl	%eax, (%rcx)
	cmovel	%edx, %r14d
	orl	%r12d, %r14d
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movq	_PHY_LINK_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	orl	%eax, %r14d
	leaq	L_.str(%rip), %r13
	jmp	LBB0_19
LBB0_6:
	decl	%ebx
	je	LBB0_17
## %bb.7:
	leaq	L_.str.2(%rip), %r13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_udelay
	cmpq	$0, 32(%r15)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_jme_linkstat_from_phy
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	_JME_PHY_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_jread32
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %r14d
	testl	%eax, (%r12)
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_12 Depth=1
	decl	%ebx
	jne	LBB0_12
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_18:
	leaq	L_.str.2(%rip), %r13
LBB0_19:
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	callq	_strcat
	movl	$1, %ebx
	cmpl	%r14d, (%r15)
	je	LBB0_39
## %bb.20:
	xorl	%ebx, %ebx
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_39
## %bb.21:
	movl	%r14d, (%r15)
	movq	_PHY_LINK_SPEED_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	andl	%r14d, %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_23
## %bb.22:
	cltq
	leaq	l_switch.table.jme_check_link(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_reltable.jme_check_link(%rip), %rdx
	movslq	(%rdx,%rax,4), %rsi
	addq	%rdx, %rsi
	movl	(%rcx), %eax
	orl	%eax, 4(%r15)
	leaq	-112(%rbp), %rdi
	callq	_strcat
LBB0_23:
	movq	_PHY_LINK_DUPLEX@GOTPCREL(%rip), %r13
	movq	_JME_TXMCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXMCS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, (%r13)
	je	LBB0_25
## %bb.24:
	movq	%r15, %rdi
	callq	_jwrite32
	movq	_JME_TXTRHD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXTRHD_FULLDUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_jwrite32
	movq	_GHC_DPX@GOTPCREL(%rip), %rax
	movl	4(%r15), %edx
	orl	(%rax), %edx
	movl	%edx, 4(%r15)
	jmp	LBB0_26
LBB0_25:
	movq	_TXMCS_BACKOFF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_TXMCS_CARRIERSENSE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_TXMCS_COLLISION@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_jwrite32
	movq	_JME_TXTRHD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXTRHD_HALFDUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_jwrite32
	movl	4(%r15), %edx
LBB0_26:
	movq	_JME_GHC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_jwrite32
	movq	24(%r15), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	_is_buggy250
	testq	%rax, %rax
	je	LBB0_36
## %bb.27:
	movq	_GPREG1_HALFMODEPATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GPREG1_RSSPATCH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	orl	%eax, %ecx
	notl	%ecx
	andl	8(%r15), %ecx
	movl	%ecx, 8(%r15)
	testl	%r14d, (%r13)
	jne	LBB0_29
## %bb.28:
	orl	%eax, %ecx
	movl	%ecx, 8(%r15)
LBB0_29:
	movl	(%r12), %eax
	andl	%r14d, %eax
	cmpl	$130, %eax
	je	LBB0_35
## %bb.30:
	cmpl	$129, %eax
	je	LBB0_34
## %bb.31:
	cmpl	$128, %eax
	jne	LBB0_36
## %bb.32:
	movq	%r15, %rdi
	callq	_jme_set_phyfifo_8level
	jmp	LBB0_33
LBB0_35:
	movq	%r15, %rdi
	callq	_jme_set_phyfifo_8level
	jmp	LBB0_36
LBB0_34:
	movq	%r15, %rdi
	callq	_jme_set_phyfifo_5level
LBB0_33:
	movl	(%rbx), %eax
	orl	%eax, 8(%r15)
LBB0_36:
	movq	_JME_GPREG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%r15, %rdi
	callq	_jwrite32
	movl	(%r13), %eax
	andl	%r14d, %eax
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	callq	_strcat
	movq	_PHY_LINK_MDI_STAT@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r12, %rdi
	callq	_strcat
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	leaq	L_.str.10(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_netif_info
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_netif_carrier_on
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_JME_SPDRSV_TIMEOUT,4,2         ## @JME_SPDRSV_TIMEOUT
	.comm	_JME_PHY_LINK,4,2               ## @JME_PHY_LINK
	.comm	_PHY_LINK_UP,4,2                ## @PHY_LINK_UP
	.comm	_PHY_LINK_AUTONEG_COMPLETE,4,2  ## @PHY_LINK_AUTONEG_COMPLETE
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_SPEED1000,4,2             ## @BMCR_SPEED1000
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_PHY_LINK_DUPLEX,4,2            ## @PHY_LINK_DUPLEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Forced: "

	.comm	_PHY_LINK_SPEEDDPU_RESOLVED,4,2 ## @PHY_LINK_SPEEDDPU_RESOLVED
L_.str.1:                               ## @.str.1
	.asciz	"Waiting speed resolve timeout\n"

L_.str.2:                               ## @.str.2
	.asciz	"ANed: "

	.comm	_PHY_LINK_SPEED_MASK,4,2        ## @PHY_LINK_SPEED_MASK
	.comm	_GHC_SPEED_10M,4,2              ## @GHC_SPEED_10M
L_.str.3:                               ## @.str.3
	.asciz	"10 Mbps, "

	.comm	_GHC_SPEED_100M,4,2             ## @GHC_SPEED_100M
L_.str.4:                               ## @.str.4
	.asciz	"100 Mbps, "

	.comm	_GHC_SPEED_1000M,4,2            ## @GHC_SPEED_1000M
L_.str.5:                               ## @.str.5
	.asciz	"1000 Mbps, "

	.comm	_JME_TXMCS,4,2                  ## @JME_TXMCS
	.comm	_TXMCS_DEFAULT,4,2              ## @TXMCS_DEFAULT
	.comm	_JME_TXTRHD,4,2                 ## @JME_TXTRHD
	.comm	_TXTRHD_FULLDUPLEX,4,2          ## @TXTRHD_FULLDUPLEX
	.comm	_GHC_DPX,4,2                    ## @GHC_DPX
	.comm	_TXMCS_BACKOFF,4,2              ## @TXMCS_BACKOFF
	.comm	_TXMCS_CARRIERSENSE,4,2         ## @TXMCS_CARRIERSENSE
	.comm	_TXMCS_COLLISION,4,2            ## @TXMCS_COLLISION
	.comm	_TXTRHD_HALFDUPLEX,4,2          ## @TXTRHD_HALFDUPLEX
	.comm	_JME_GHC,4,2                    ## @JME_GHC
	.comm	_GPREG1_HALFMODEPATCH,4,2       ## @GPREG1_HALFMODEPATCH
	.comm	_GPREG1_RSSPATCH,4,2            ## @GPREG1_RSSPATCH
	.comm	_JME_GPREG1,4,2                 ## @JME_GPREG1
L_.str.6:                               ## @.str.6
	.asciz	"Full-Duplex, "

L_.str.7:                               ## @.str.7
	.asciz	"Half-Duplex, "

	.comm	_PHY_LINK_MDI_STAT,4,2          ## @PHY_LINK_MDI_STAT
L_.str.8:                               ## @.str.8
	.asciz	"MDI-X"

L_.str.9:                               ## @.str.9
	.asciz	"MDI"

	.comm	_link,4,2                       ## @link
L_.str.10:                              ## @.str.10
	.asciz	"Link is up at %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"Link is down\n"

	.no_dead_strip	_jme_check_link
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.jme_check_link
l_switch.table.jme_check_link:
	.quad	_GHC_SPEED_10M
	.quad	_GHC_SPEED_100M
	.quad	_GHC_SPEED_1000M

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.jme_check_link
l_reltable.jme_check_link:
	.long	L_.str.3-l_reltable.jme_check_link
	.long	L_.str.4-l_reltable.jme_check_link
	.long	L_.str.5-l_reltable.jme_check_link

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_check_link
_jme_check_link:                        ; @jme_check_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	bl	_netdev_priv
	mov	x20, x0
Lloh3:
	adrp	x8, _JME_SPDRSV_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JME_SPDRSV_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	strb	wzr, [sp, #8]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_jme_linkstat_from_phy
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _JME_PHY_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JME_PHY_LINK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_jread32
LBB0_3:
	mov	x21, x0
Lloh9:
	adrp	x8, _PHY_LINK_UP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_LINK_UP@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	tst	w24, w0
	b.eq	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _PHY_LINK_AUTONEG_COMPLETE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PHY_LINK_AUTONEG_COMPLETE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.5:
Lloh15:
	adrp	x24, _PHY_LINK_SPEEDDPU_RESOLVED@GOTPAGE
Lloh16:
	ldr	x24, [x24, _PHY_LINK_SPEEDDPU_RESOLVED@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.6:
	cbnz	w23, LBB0_18
	b	LBB0_17
LBB0_7:
	cbnz	w22, LBB0_38
; %bb.8:
Lloh17:
	adrp	x8, _link@GOTPAGE
Lloh18:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
Lloh20:
	adrp	x3, l_.str.11@PAGE
Lloh21:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_netif_info
	str	wzr, [x20]
	mov	x0, x19
	bl	_netif_carrier_off
	b	LBB0_38
LBB0_9:
	ldr	w0, [x20, #12]
	ldr	w1, [x20, #40]
Lloh22:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_jme_mdio_read
Lloh25:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #128
Lloh28:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
	cinc	w8, w8, ne
Lloh30:
	ldr	w9, [x9]
	and	w9, w9, w0
	ccmp	w9, #0, #4, eq
	mov	w9, #130
	csel	w8, w9, w8, ne
	orr	w8, w8, w24
Lloh31:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _PHY_LINK_DUPLEX@GOTPAGE
Lloh35:
	ldr	x10, [x10, _PHY_LINK_DUPLEX@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
Lloh37:
	adrp	x23, l_.str@PAGE
Lloh38:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_19
LBB0_10:
	subs	w25, w23, #1
	b.eq	LBB0_17
; %bb.11:
Lloh39:
	adrp	x26, _JME_PHY_LINK@GOTPAGE
Lloh40:
	ldr	x26, [x26, _JME_PHY_LINK@GOTPAGEOFF]
Lloh41:
	adrp	x23, l_.str.2@PAGE
Lloh42:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_jme_linkstat_from_phy
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	bl	_jread32
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x21, x0
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	subs	w25, w25, #1
	b.ne	LBB0_12
LBB0_17:
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_18:
Lloh45:
	adrp	x23, l_.str.2@PAGE
Lloh46:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_19:
	add	x0, sp, #8
	mov	x1, x23
	bl	_strcat
	ldr	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #1
	b	LBB0_39
LBB0_21:
	cbnz	w22, LBB0_38
; %bb.22:
	str	w21, [x20]
Lloh47:
	adrp	x23, _PHY_LINK_SPEED_MASK@GOTPAGE
Lloh48:
	ldr	x23, [x23, _PHY_LINK_SPEED_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w21
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_24
; %bb.23:
	sbfiz	x8, x8, #3, #32
Lloh49:
	adrp	x9, l_switch.table.jme_check_link@PAGE
Lloh50:
	add	x9, x9, l_switch.table.jme_check_link@PAGEOFF
	ldr	x9, [x9, x8]
Lloh51:
	adrp	x10, l_switch.table.jme_check_link.12@PAGE
Lloh52:
	add	x10, x10, l_switch.table.jme_check_link.12@PAGEOFF
	ldr	x1, [x10, x8]
	ldr	w8, [x9]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
	add	x0, sp, #8
	bl	_strcat
LBB0_24:
Lloh53:
	adrp	x22, _PHY_LINK_DUPLEX@GOTPAGE
Lloh54:
	ldr	x22, [x22, _PHY_LINK_DUPLEX@GOTPAGEOFF]
Lloh55:
	adrp	x8, _JME_TXMCS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _JME_TXMCS@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x8, _TXMCS_DEFAULT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _TXMCS_DEFAULT@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	tst	w9, w21
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x20
	bl	_jwrite32
Lloh61:
	adrp	x8, _JME_TXTRHD@GOTPAGE
Lloh62:
	ldr	x8, [x8, _JME_TXTRHD@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
Lloh64:
	adrp	x8, _TXTRHD_FULLDUPLEX@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TXTRHD_FULLDUPLEX@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_jwrite32
Lloh67:
	adrp	x8, _GHC_DPX@GOTPAGE
Lloh68:
	ldr	x8, [x8, _GHC_DPX@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w2, w9, w8
	str	w2, [x20, #4]
	b	LBB0_27
LBB0_26:
Lloh70:
	adrp	x8, _TXMCS_BACKOFF@GOTPAGE
Lloh71:
	ldr	x8, [x8, _TXMCS_BACKOFF@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	orr	w8, w8, w2
Lloh73:
	adrp	x9, _TXMCS_CARRIERSENSE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _TXMCS_CARRIERSENSE@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh76:
	adrp	x9, _TXMCS_COLLISION@GOTPAGE
Lloh77:
	ldr	x9, [x9, _TXMCS_COLLISION@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_jwrite32
Lloh79:
	adrp	x8, _JME_TXTRHD@GOTPAGE
Lloh80:
	ldr	x8, [x8, _JME_TXTRHD@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x8, _TXTRHD_HALFDUPLEX@GOTPAGE
Lloh83:
	ldr	x8, [x8, _TXTRHD_HALFDUPLEX@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_jwrite32
	ldr	w2, [x20, #4]
LBB0_27:
Lloh85:
	adrp	x8, _JME_GHC@GOTPAGE
Lloh86:
	ldr	x8, [x8, _JME_GHC@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_jwrite32
	ldr	x8, [x20, #24]
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_is_buggy250
	cbz	x0, LBB0_37
; %bb.28:
Lloh88:
	adrp	x8, _GPREG1_HALFMODEPATCH@GOTPAGE
Lloh89:
	ldr	x8, [x8, _GPREG1_HALFMODEPATCH@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
Lloh91:
	adrp	x24, _GPREG1_RSSPATCH@GOTPAGE
Lloh92:
	ldr	x24, [x24, _GPREG1_RSSPATCH@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w9, w9, w8
	ldr	w10, [x20, #8]
	bic	w9, w10, w9
	str	w9, [x20, #8]
	ldr	w10, [x22]
	tst	w10, w21
	b.ne	LBB0_30
; %bb.29:
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_30:
	ldr	w8, [x23]
	and	w8, w8, w21
	cmp	w8, #130
	b.eq	LBB0_34
; %bb.31:
	cmp	w8, #129
	b.eq	LBB0_35
; %bb.32:
	cmp	w8, #128
	b.ne	LBB0_37
; %bb.33:
	mov	x0, x20
	bl	_jme_set_phyfifo_8level
	b	LBB0_36
LBB0_34:
	mov	x0, x20
	bl	_jme_set_phyfifo_8level
	b	LBB0_37
LBB0_35:
	mov	x0, x20
	bl	_jme_set_phyfifo_5level
LBB0_36:
	ldr	w8, [x24]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_37:
Lloh93:
	adrp	x8, _JME_GPREG1@GOTPAGE
Lloh94:
	ldr	x8, [x8, _JME_GPREG1@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x20
	bl	_jwrite32
	ldr	w8, [x22]
Lloh96:
	adrp	x9, l_.str.6@PAGE
Lloh97:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh98:
	adrp	x10, l_.str.7@PAGE
Lloh99:
	add	x10, x10, l_.str.7@PAGEOFF
	tst	w8, w21
	csel	x1, x10, x9, eq
	add	x22, sp, #8
	add	x0, sp, #8
	bl	_strcat
Lloh100:
	adrp	x8, _PHY_LINK_MDI_STAT@GOTPAGE
Lloh101:
	ldr	x8, [x8, _PHY_LINK_MDI_STAT@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
Lloh103:
	adrp	x9, l_.str.8@PAGE
Lloh104:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh105:
	adrp	x10, l_.str.9@PAGE
Lloh106:
	add	x10, x10, l_.str.9@PAGEOFF
	tst	w8, w21
	csel	x1, x10, x9, eq
	add	x0, sp, #8
	bl	_strcat
Lloh107:
	adrp	x8, _link@GOTPAGE
Lloh108:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	str	x22, [sp]
Lloh110:
	adrp	x3, l_.str.10@PAGE
Lloh111:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_netif_info
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_38:
	mov	w0, #0
LBB0_39:
	ldr	x8, [sp, #72]
Lloh112:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh113:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh114:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.40:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.cfi_endproc
                                        ; -- End function
	.comm	_JME_SPDRSV_TIMEOUT,4,2         ; @JME_SPDRSV_TIMEOUT
	.comm	_JME_PHY_LINK,4,2               ; @JME_PHY_LINK
	.comm	_PHY_LINK_UP,4,2                ; @PHY_LINK_UP
	.comm	_PHY_LINK_AUTONEG_COMPLETE,4,2  ; @PHY_LINK_AUTONEG_COMPLETE
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_SPEED1000,4,2             ; @BMCR_SPEED1000
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_PHY_LINK_DUPLEX,4,2            ; @PHY_LINK_DUPLEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Forced: "

	.comm	_PHY_LINK_SPEEDDPU_RESOLVED,4,2 ; @PHY_LINK_SPEEDDPU_RESOLVED
l_.str.1:                               ; @.str.1
	.asciz	"Waiting speed resolve timeout\n"

l_.str.2:                               ; @.str.2
	.asciz	"ANed: "

	.comm	_PHY_LINK_SPEED_MASK,4,2        ; @PHY_LINK_SPEED_MASK
	.comm	_GHC_SPEED_10M,4,2              ; @GHC_SPEED_10M
l_.str.3:                               ; @.str.3
	.asciz	"10 Mbps, "

	.comm	_GHC_SPEED_100M,4,2             ; @GHC_SPEED_100M
l_.str.4:                               ; @.str.4
	.asciz	"100 Mbps, "

	.comm	_GHC_SPEED_1000M,4,2            ; @GHC_SPEED_1000M
l_.str.5:                               ; @.str.5
	.asciz	"1000 Mbps, "

	.comm	_JME_TXMCS,4,2                  ; @JME_TXMCS
	.comm	_TXMCS_DEFAULT,4,2              ; @TXMCS_DEFAULT
	.comm	_JME_TXTRHD,4,2                 ; @JME_TXTRHD
	.comm	_TXTRHD_FULLDUPLEX,4,2          ; @TXTRHD_FULLDUPLEX
	.comm	_GHC_DPX,4,2                    ; @GHC_DPX
	.comm	_TXMCS_BACKOFF,4,2              ; @TXMCS_BACKOFF
	.comm	_TXMCS_CARRIERSENSE,4,2         ; @TXMCS_CARRIERSENSE
	.comm	_TXMCS_COLLISION,4,2            ; @TXMCS_COLLISION
	.comm	_TXTRHD_HALFDUPLEX,4,2          ; @TXTRHD_HALFDUPLEX
	.comm	_JME_GHC,4,2                    ; @JME_GHC
	.comm	_GPREG1_HALFMODEPATCH,4,2       ; @GPREG1_HALFMODEPATCH
	.comm	_GPREG1_RSSPATCH,4,2            ; @GPREG1_RSSPATCH
	.comm	_JME_GPREG1,4,2                 ; @JME_GPREG1
l_.str.6:                               ; @.str.6
	.asciz	"Full-Duplex, "

l_.str.7:                               ; @.str.7
	.asciz	"Half-Duplex, "

	.comm	_PHY_LINK_MDI_STAT,4,2          ; @PHY_LINK_MDI_STAT
l_.str.8:                               ; @.str.8
	.asciz	"MDI-X"

l_.str.9:                               ; @.str.9
	.asciz	"MDI"

	.comm	_link,4,2                       ; @link
l_.str.10:                              ; @.str.10
	.asciz	"Link is up at %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"Link is down\n"

	.no_dead_strip	_jme_check_link
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.jme_check_link
l_switch.table.jme_check_link:
	.quad	_GHC_SPEED_10M
	.quad	_GHC_SPEED_100M
	.quad	_GHC_SPEED_1000M

	.p2align	3                               ; @switch.table.jme_check_link.12
l_switch.table.jme_check_link.12:
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

.subsections_via_symbols
