	.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, 24(%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_43
## %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_43:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	jne	LBB0_45
## %bb.44:
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_msg_link
	movl	$0, (%r15)
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_netif_carrier_off
	jmp	LBB0_45
LBB0_8:
	movl	32(%r15), %esi
	movl	36(%r15), %edi
	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, 24(%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:
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_jeprintk
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_45
## %bb.20:
	xorl	%ebx, %ebx
	cmpl	$0, -116(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_45
## %bb.21:
	movl	%r14d, (%r15)
	movq	_GHC_SPEED@GOTPCREL(%rip), %rcx
	movq	_GHC_DPX@GOTPCREL(%rip), %r13
	movq	_GHC_TO_CLK_PCIE@GOTPCREL(%rip), %rdx
	movq	_GHC_TXMAC_CLK_PCIE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GHC_TO_CLK_GPHY@GOTPCREL(%rip), %rsi
	movq	_GHC_TXMAC_CLK_GPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %ebx
	movl	(%rcx), %r12d
	orl	%ebx, %r12d
	orl	(%r13), %r12d
	orl	(%rsi), %eax
	orl	%eax, %r12d
	notl	%r12d
	andl	4(%r15), %r12d
	movq	_PHY_LINK_SPEED_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	cmpl	$128, %ecx
	je	LBB0_22
## %bb.23:
	cmpl	$130, %ecx
	je	LBB0_26
## %bb.24:
	cmpl	$129, %ecx
	jne	LBB0_28
## %bb.25:
	leaq	L_.str.4(%rip), %rsi
	movq	_GHC_SPEED_100M@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	movq	_GHC_SPEED_10M@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.5(%rip), %rsi
	movq	_GHC_SPEED_1000M@GOTPCREL(%rip), %rcx
	movl	%eax, %ebx
LBB0_27:
	orl	%r12d, %ebx
	orl	(%rcx), %ebx
	leaq	-112(%rbp), %rdi
	callq	_strcat
	movl	%ebx, %r12d
LBB0_28:
	movq	_PHY_LINK_DUPLEX@GOTPCREL(%rip), %rcx
	movq	_JME_TXMCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXMCS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, (%rcx)
	je	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	callq	_jwrite32
	orl	(%r13), %r12d
	jmp	LBB0_31
LBB0_30:
	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
	movq	_TXTRHD_TXP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$8192, %edi                     ## imm = 0x2000
	shll	%cl, %edi
	movl	(%rax), %esi
	movq	_TXTRHD_TXP@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	_TXTRHD_TXPEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TXTRHD_TXREN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_TXTRHD_TXRL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$8, %edx
	shll	%cl, %edx
	movq	_TXTRHD_TXRL@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	orl	%edi, %edx
	movq	%r15, %rdi
	callq	_jwrite32
LBB0_31:
	movq	_GPREG1_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r15), %rax
	movl	(%rax), %edi
	movl	8(%r15), %esi
	callq	_is_buggy250
	testq	%rax, %rax
	je	LBB0_32
## %bb.33:
	xorl	%r13d, %r13d
	movq	_PHY_LINK_DUPLEX@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_35
## %bb.34:
	movq	_GPREG1_HALFMODEPATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_35:
	orl	%ebx, %r13d
	movq	_PHY_LINK_SPEED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	cmpl	$130, %eax
	je	LBB0_41
## %bb.36:
	cmpl	$129, %eax
	je	LBB0_40
## %bb.37:
	cmpl	$128, %eax
	jne	LBB0_42
## %bb.38:
	movq	%r15, %rdi
	callq	_jme_set_phyfifoa
	jmp	LBB0_39
LBB0_32:
	movl	%ebx, %r13d
	jmp	LBB0_42
LBB0_41:
	movq	%r15, %rdi
	callq	_jme_set_phyfifoa
	jmp	LBB0_42
LBB0_40:
	movq	%r15, %rdi
	callq	_jme_set_phyfifob
LBB0_39:
	movq	_GPREG1_RSSPATCH@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_42:
	movq	_JME_GPREG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_jwrite32
	movq	_JME_GHC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_jwrite32
	movl	%r12d, 4(%r15)
	movq	_PHY_LINK_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %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
	leaq	L_.str.10(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_msg_link
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_netif_carrier_on
LBB0_45:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_47
## %bb.46:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	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	_GHC_SPEED,4,2                  ## @GHC_SPEED
	.comm	_GHC_DPX,4,2                    ## @GHC_DPX
	.comm	_GHC_TO_CLK_PCIE,4,2            ## @GHC_TO_CLK_PCIE
	.comm	_GHC_TXMAC_CLK_PCIE,4,2         ## @GHC_TXMAC_CLK_PCIE
	.comm	_GHC_TO_CLK_GPHY,4,2            ## @GHC_TO_CLK_GPHY
	.comm	_GHC_TXMAC_CLK_GPHY,4,2         ## @GHC_TXMAC_CLK_GPHY
	.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	_TXMCS_BACKOFF,4,2              ## @TXMCS_BACKOFF
	.comm	_TXMCS_CARRIERSENSE,4,2         ## @TXMCS_CARRIERSENSE
	.comm	_TXMCS_COLLISION,4,2            ## @TXMCS_COLLISION
	.comm	_JME_TXTRHD,4,2                 ## @JME_TXTRHD
	.comm	_TXTRHD_TXPEN,4,2               ## @TXTRHD_TXPEN
	.comm	_TXTRHD_TXP_SHIFT,4,2           ## @TXTRHD_TXP_SHIFT
	.comm	_TXTRHD_TXP,4,2                 ## @TXTRHD_TXP
	.comm	_TXTRHD_TXREN,4,2               ## @TXTRHD_TXREN
	.comm	_TXTRHD_TXRL_SHIFT,4,2          ## @TXTRHD_TXRL_SHIFT
	.comm	_TXTRHD_TXRL,4,2                ## @TXTRHD_TXRL
	.comm	_GPREG1_DEFAULT,4,2             ## @GPREG1_DEFAULT
	.comm	_GPREG1_HALFMODEPATCH,4,2       ## @GPREG1_HALFMODEPATCH
	.comm	_GPREG1_RSSPATCH,4,2            ## @GPREG1_RSSPATCH
	.comm	_JME_GPREG1,4,2                 ## @JME_GPREG1
	.comm	_JME_GHC,4,2                    ## @JME_GHC
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"

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
.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, #24]
	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_41
; %bb.8:
Lloh17:
	adrp	x1, l_.str.11@PAGE
Lloh18:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_msg_link
	str	wzr, [x20]
	mov	x0, x19
	bl	_netif_carrier_off
	b	LBB0_41
LBB0_9:
	ldp	w1, w0, [x20, #32]
Lloh19:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	bl	_jme_mdio_read
Lloh22:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w0
	mov	w8, #128
Lloh25:
	adrp	x9, _BMCR_SPEED1000@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BMCR_SPEED1000@GOTPAGEOFF]
	cinc	w8, w8, ne
Lloh27:
	ldr	w9, [x9]
	and	w9, w9, w0
	ccmp	w9, #0, #4, eq
	mov	w9, #130
	csel	w8, w9, w8, ne
	orr	w8, w8, w24
Lloh28:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _PHY_LINK_DUPLEX@GOTPAGE
Lloh32:
	ldr	x10, [x10, _PHY_LINK_DUPLEX@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w21, w8, w9
Lloh34:
	adrp	x23, l_.str@PAGE
Lloh35:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_19
LBB0_10:
	subs	w25, w23, #1
	b.eq	LBB0_17
; %bb.11:
Lloh36:
	adrp	x26, _JME_PHY_LINK@GOTPAGE
Lloh37:
	ldr	x26, [x26, _JME_PHY_LINK@GOTPAGEOFF]
Lloh38:
	adrp	x23, l_.str.2@PAGE
Lloh39:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	x8, [x20, #24]
	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:
	ldr	x0, [x20, #16]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_jeprintk
LBB0_18:
Lloh42:
	adrp	x23, l_.str.2@PAGE
Lloh43:
	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_42
LBB0_21:
	cbnz	w22, LBB0_41
; %bb.22:
	str	w21, [x20]
	ldr	w11, [x20, #4]
Lloh44:
	adrp	x8, _GHC_SPEED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GHC_SPEED@GOTPAGEOFF]
Lloh46:
	ldr	w12, [x8]
Lloh47:
	adrp	x23, _GHC_DPX@GOTPAGE
Lloh48:
	ldr	x23, [x23, _GHC_DPX@GOTPAGEOFF]
	ldr	w13, [x23]
Lloh49:
	adrp	x8, _GHC_TO_CLK_PCIE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _GHC_TO_CLK_PCIE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _GHC_TXMAC_CLK_PCIE@GOTPAGE
Lloh53:
	ldr	x9, [x9, _GHC_TXMAC_CLK_PCIE@GOTPAGEOFF]
Lloh54:
	ldr	w14, [x9]
Lloh55:
	adrp	x9, _GHC_TO_CLK_GPHY@GOTPAGE
Lloh56:
	ldr	x9, [x9, _GHC_TO_CLK_GPHY@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
Lloh58:
	adrp	x10, _GHC_TXMAC_CLK_GPHY@GOTPAGE
Lloh59:
	ldr	x10, [x10, _GHC_TXMAC_CLK_GPHY@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	orr	w8, w14, w8
	orr	w12, w8, w12
	orr	w12, w12, w13
	orr	w12, w12, w9
	orr	w12, w12, w10
	bic	w22, w11, w12
Lloh61:
	adrp	x25, _PHY_LINK_SPEED_MASK@GOTPAGE
Lloh62:
	ldr	x25, [x25, _PHY_LINK_SPEED_MASK@GOTPAGEOFF]
	ldr	w11, [x25]
	and	w11, w11, w21
	cmp	w11, #128
	b.eq	LBB0_26
; %bb.23:
	cmp	w11, #130
	b.eq	LBB0_27
; %bb.24:
	cmp	w11, #129
	b.ne	LBB0_29
; %bb.25:
Lloh63:
	adrp	x1, l_.str.4@PAGE
Lloh64:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh65:
	adrp	x9, _GHC_SPEED_100M@GOTPAGE
Lloh66:
	ldr	x9, [x9, _GHC_SPEED_100M@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh67:
	adrp	x1, l_.str.3@PAGE
Lloh68:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh69:
	adrp	x9, _GHC_SPEED_10M@GOTPAGE
Lloh70:
	ldr	x9, [x9, _GHC_SPEED_10M@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
	orr	w8, w10, w9
Lloh71:
	adrp	x1, l_.str.5@PAGE
Lloh72:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh73:
	adrp	x9, _GHC_SPEED_1000M@GOTPAGE
Lloh74:
	ldr	x9, [x9, _GHC_SPEED_1000M@GOTPAGEOFF]
LBB0_28:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
	add	x0, sp, #8
	bl	_strcat
LBB0_29:
Lloh75:
	adrp	x24, _PHY_LINK_DUPLEX@GOTPAGE
Lloh76:
	ldr	x24, [x24, _PHY_LINK_DUPLEX@GOTPAGEOFF]
Lloh77:
	adrp	x8, _JME_TXMCS@GOTPAGE
Lloh78:
	ldr	x8, [x8, _JME_TXMCS@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh79:
	ldr	w1, [x8]
Lloh80:
	adrp	x8, _TXMCS_DEFAULT@GOTPAGE
Lloh81:
	ldr	x8, [x8, _TXMCS_DEFAULT@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	tst	w9, w21
	b.eq	LBB0_31
; %bb.30:
	mov	x0, x20
	bl	_jwrite32
	ldr	w8, [x23]
	orr	w22, w8, w22
	b	LBB0_32
LBB0_31:
Lloh83:
	adrp	x8, _TXMCS_BACKOFF@GOTPAGE
Lloh84:
	ldr	x8, [x8, _TXMCS_BACKOFF@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	orr	w8, w8, w2
Lloh86:
	adrp	x9, _TXMCS_CARRIERSENSE@GOTPAGE
Lloh87:
	ldr	x9, [x9, _TXMCS_CARRIERSENSE@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh89:
	adrp	x9, _TXMCS_COLLISION@GOTPAGE
Lloh90:
	ldr	x9, [x9, _TXMCS_COLLISION@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_jwrite32
Lloh92:
	adrp	x8, _JME_TXTRHD@GOTPAGE
Lloh93:
	ldr	x8, [x8, _JME_TXTRHD@GOTPAGEOFF]
Lloh94:
	adrp	x9, _TXTRHD_TXPEN@GOTPAGE
Lloh95:
	ldr	x9, [x9, _TXTRHD_TXPEN@GOTPAGEOFF]
Lloh96:
	adrp	x10, _TXTRHD_TXP_SHIFT@GOTPAGE
Lloh97:
	ldr	x10, [x10, _TXTRHD_TXP_SHIFT@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
Lloh99:
	ldr	w8, [x10]
	mov	w10, #8192
	lsl	w8, w10, w8
Lloh100:
	adrp	x10, _TXTRHD_TXP@GOTPAGE
Lloh101:
	ldr	x10, [x10, _TXTRHD_TXP@GOTPAGEOFF]
Lloh102:
	ldr	w9, [x9]
Lloh103:
	ldr	w10, [x10]
	and	w8, w8, w10
	orr	w8, w8, w9
Lloh104:
	adrp	x9, _TXTRHD_TXREN@GOTPAGE
Lloh105:
	ldr	x9, [x9, _TXTRHD_TXREN@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh107:
	adrp	x9, _TXTRHD_TXRL_SHIFT@GOTPAGE
Lloh108:
	ldr	x9, [x9, _TXTRHD_TXRL_SHIFT@GOTPAGEOFF]
Lloh109:
	ldr	w9, [x9]
	mov	w10, #8
	lsl	w9, w10, w9
Lloh110:
	adrp	x10, _TXTRHD_TXRL@GOTPAGE
Lloh111:
	ldr	x10, [x10, _TXTRHD_TXRL@GOTPAGEOFF]
Lloh112:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w2, w8, w9
	mov	x0, x20
	bl	_jwrite32
LBB0_32:
Lloh113:
	adrp	x8, _GPREG1_DEFAULT@GOTPAGE
Lloh114:
	ldr	x8, [x8, _GPREG1_DEFAULT@GOTPAGEOFF]
Lloh115:
	ldr	w23, [x8]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_is_buggy250
	cbz	x0, LBB0_40
; %bb.33:
	ldr	w8, [x24]
Lloh116:
	adrp	x9, _GPREG1_HALFMODEPATCH@GOTPAGE
Lloh117:
	ldr	x9, [x9, _GPREG1_HALFMODEPATCH@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	tst	w8, w21
	csel	w8, w9, wzr, eq
	orr	w23, w8, w23
	ldr	w8, [x25]
	and	w8, w8, w21
	cmp	w8, #130
	b.eq	LBB0_37
; %bb.34:
	cmp	w8, #129
	b.eq	LBB0_38
; %bb.35:
	cmp	w8, #128
	b.ne	LBB0_40
; %bb.36:
	mov	x0, x20
	bl	_jme_set_phyfifoa
	b	LBB0_39
LBB0_37:
	mov	x0, x20
	bl	_jme_set_phyfifoa
	b	LBB0_40
LBB0_38:
	mov	x0, x20
	bl	_jme_set_phyfifob
LBB0_39:
Lloh119:
	adrp	x8, _GPREG1_RSSPATCH@GOTPAGE
Lloh120:
	ldr	x8, [x8, _GPREG1_RSSPATCH@GOTPAGEOFF]
Lloh121:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_40:
Lloh122:
	adrp	x8, _JME_GPREG1@GOTPAGE
Lloh123:
	ldr	x8, [x8, _JME_GPREG1@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_jwrite32
Lloh125:
	adrp	x8, _JME_GHC@GOTPAGE
Lloh126:
	ldr	x8, [x8, _JME_GHC@GOTPAGEOFF]
Lloh127:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_jwrite32
	str	w22, [x20, #4]
	ldr	w8, [x24]
Lloh128:
	adrp	x9, l_.str.6@PAGE
Lloh129:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh130:
	adrp	x10, l_.str.7@PAGE
Lloh131:
	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
Lloh132:
	adrp	x8, _PHY_LINK_MDI_STAT@GOTPAGE
Lloh133:
	ldr	x8, [x8, _PHY_LINK_MDI_STAT@GOTPAGEOFF]
Lloh134:
	ldr	w8, [x8]
Lloh135:
	adrp	x9, l_.str.8@PAGE
Lloh136:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh137:
	adrp	x10, l_.str.9@PAGE
Lloh138:
	add	x10, x10, l_.str.9@PAGEOFF
	tst	w8, w21
	csel	x1, x10, x9, eq
	add	x0, sp, #8
	bl	_strcat
	str	x22, [sp]
Lloh139:
	adrp	x1, l_.str.10@PAGE
Lloh140:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_msg_link
	mov	x0, x19
	bl	_netif_carrier_on
LBB0_41:
	mov	w0, #0
LBB0_42:
	ldr	x8, [sp, #72]
Lloh141:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh142:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh143:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	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_44:
	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	Lloh17, Lloh18
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh103
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh102
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh98
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.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	_GHC_SPEED,4,2                  ; @GHC_SPEED
	.comm	_GHC_DPX,4,2                    ; @GHC_DPX
	.comm	_GHC_TO_CLK_PCIE,4,2            ; @GHC_TO_CLK_PCIE
	.comm	_GHC_TXMAC_CLK_PCIE,4,2         ; @GHC_TXMAC_CLK_PCIE
	.comm	_GHC_TO_CLK_GPHY,4,2            ; @GHC_TO_CLK_GPHY
	.comm	_GHC_TXMAC_CLK_GPHY,4,2         ; @GHC_TXMAC_CLK_GPHY
	.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	_TXMCS_BACKOFF,4,2              ; @TXMCS_BACKOFF
	.comm	_TXMCS_CARRIERSENSE,4,2         ; @TXMCS_CARRIERSENSE
	.comm	_TXMCS_COLLISION,4,2            ; @TXMCS_COLLISION
	.comm	_JME_TXTRHD,4,2                 ; @JME_TXTRHD
	.comm	_TXTRHD_TXPEN,4,2               ; @TXTRHD_TXPEN
	.comm	_TXTRHD_TXP_SHIFT,4,2           ; @TXTRHD_TXP_SHIFT
	.comm	_TXTRHD_TXP,4,2                 ; @TXTRHD_TXP
	.comm	_TXTRHD_TXREN,4,2               ; @TXTRHD_TXREN
	.comm	_TXTRHD_TXRL_SHIFT,4,2          ; @TXTRHD_TXRL_SHIFT
	.comm	_TXTRHD_TXRL,4,2                ; @TXTRHD_TXRL
	.comm	_GPREG1_DEFAULT,4,2             ; @GPREG1_DEFAULT
	.comm	_GPREG1_HALFMODEPATCH,4,2       ; @GPREG1_HALFMODEPATCH
	.comm	_GPREG1_RSSPATCH,4,2            ; @GPREG1_RSSPATCH
	.comm	_JME_GPREG1,4,2                 ; @JME_GPREG1
	.comm	_JME_GHC,4,2                    ; @JME_GHC
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"

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
.subsections_via_symbols
