	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_mii_config            ## -- Begin function bcmgenet_mii_config
	.p2align	4, 0x90
_bcmgenet_mii_config:                   ## @bcmgenet_mii_config
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r13), %rbx
	movq	16(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_UMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bcmgenet_umac_readl
	movl	%eax, %r15d
	movq	_CMD_SW_RESET@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	cmpl	$132, (%r12)
	jne	LBB0_7
## %bb.3:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_phy_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
LBB0_7:
	movq	_PORT_MODE_EXT_GPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_sys_writel
	movl	$4, %edi
	callq	_udelay
	movq	_CMD_LCL_LOOP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CMD_SW_RESET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	_UMAC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_bcmgenet_umac_writel
	movl	$2, %edi
	callq	_udelay
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r14d
LBB0_8:
	cmpq	$0, 8(%r12)
	sete	%al
	movl	(%r12), %edx
	cmpl	$131, %edx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, 4(%r12)
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_27
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r12, %rdi
	callq	_GENET_IS_V4
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	_PORT_MODE_INT_EPHY@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	movl	%r14d, %ebx
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	jmp	LBB0_38
LBB0_27:
	leaq	L_.str.7(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_38
LBB0_23:
	movl	$16, %edi
	callq	_BIT
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %r13
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.6(%rip), %r13
	xorl	%r15d, %r15d
LBB0_26:
	movq	_PORT_MODE_EXT_GPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_sys_writel
	cmpl	$0, 4(%r12)
	jne	LBB0_30
	jmp	LBB0_36
LBB0_19:
	movq	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rax
	movl	(%rax), %esi
	callq	_linkmode_test_bit
	testl	%eax, %eax
	jne	LBB0_20
## %bb.21:
	movq	_PORT_MODE_EXT_RVMII_25@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_set_max_speed
	movq	_PORT_MODE_EXT_EPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_sys_writel
	xorl	%r15d, %r15d
	leaq	L_.str.3(%rip), %r13
	testl	%r14d, %r14d
	js	LBB0_29
## %bb.18:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_phy_write
	cmpl	$0, 4(%r12)
	jne	LBB0_30
	jmp	LBB0_36
LBB0_11:
	movq	_PORT_MODE_INT_GPHY@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_sys_writel
	cmpq	$0, 8(%r12)
	je	LBB0_15
## %bb.14:
	xorl	%r15d, %r15d
	leaq	L_.str.1(%rip), %r13
	cmpl	$0, 4(%r12)
	jne	LBB0_30
	jmp	LBB0_36
LBB0_15:
	xorl	%r15d, %r15d
	cmpl	$131, (%r12)
	jne	LBB0_16
## %bb.28:
	movq	%r12, %rdi
	callq	_bcmgenet_moca_phy_setup
	leaq	L_.str.2(%rip), %r13
	cmpl	$0, 4(%r12)
	jne	LBB0_30
	jmp	LBB0_36
LBB0_20:
	movq	_PORT_MODE_EXT_RVMII_50@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %esi
	movq	_SYS_PORT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bcmgenet_sys_writel
	xorl	%r15d, %r15d
	leaq	L_.str.4(%rip), %r13
LBB0_29:
	cmpl	$0, 4(%r12)
	je	LBB0_36
LBB0_30:
	movq	_EXT_RGMII_OOB_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_bcmgenet_ext_readl
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	callq	_GENET_IS_V1
	movq	_RGMII_MODE_EN_V123@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	jne	LBB0_35
## %bb.31:
	movq	%r12, %rdi
	callq	_GENET_IS_V2
	testq	%rax, %rax
	jne	LBB0_35
## %bb.32:
	movq	%r12, %rdi
	callq	_GENET_IS_V3
	testq	%rax, %rax
	jne	LBB0_33
## %bb.34:
	movq	_RGMII_MODE_EN@GOTPCREL(%rip), %r15
	jmp	LBB0_35
LBB0_16:
	xorl	%r13d, %r13d
	cmpl	$0, 4(%r12)
	jne	LBB0_30
	jmp	LBB0_36
LBB0_33:
	movq	_RGMII_MODE_EN_V123@GOTPCREL(%rip), %r15
LBB0_35:
	orl	(%r15), %ebx
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_ext_writel
LBB0_36:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_38
## %bb.37:
	leaq	L_.str.8(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_dev_info
LBB0_38:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_UMAC_CMD,4,2                   ## @UMAC_CMD
	.comm	_CMD_SW_RESET,4,2               ## @CMD_SW_RESET
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to isolate PHY\n"

	.comm	_PORT_MODE_EXT_GPHY,4,2         ## @PORT_MODE_EXT_GPHY
	.comm	_SYS_PORT_CTRL,4,2              ## @SYS_PORT_CTRL
	.comm	_CMD_LCL_LOOP_EN,4,2            ## @CMD_LCL_LOOP_EN
	.comm	_PORT_MODE_INT_GPHY,4,2         ## @PORT_MODE_INT_GPHY
	.comm	_PORT_MODE_INT_EPHY,4,2         ## @PORT_MODE_INT_EPHY
L_.str.1:                               ## @.str.1
	.asciz	"internal PHY"

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

L_.str.3:                               ## @.str.3
	.asciz	"external MII"

	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_PORT_MODE_EXT_EPHY,4,2         ## @PORT_MODE_EXT_EPHY
L_.str.4:                               ## @.str.4
	.asciz	"external RvMII"

	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_PORT_MODE_EXT_RVMII_50,4,2     ## @PORT_MODE_EXT_RVMII_50
	.comm	_PORT_MODE_EXT_RVMII_25,4,2     ## @PORT_MODE_EXT_RVMII_25
L_.str.5:                               ## @.str.5
	.asciz	"external RGMII (no delay)"

L_.str.6:                               ## @.str.6
	.asciz	"external RGMII (TX delay)"

L_.str.7:                               ## @.str.7
	.asciz	"unknown phy mode: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EXT_RGMII_OOB_CTRL,4,2         ## @EXT_RGMII_OOB_CTRL
	.comm	_RGMII_MODE_EN_V123,4,2         ## @RGMII_MODE_EN_V123
	.comm	_RGMII_MODE_EN,4,2              ## @RGMII_MODE_EN
L_.str.8:                               ## @.str.8
	.asciz	"configuring instance for %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_mii_config            ; -- Begin function bcmgenet_mii_config
	.p2align	2
_bcmgenet_mii_config:                   ; @bcmgenet_mii_config
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x22, [x23]
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x27, _UMAC_CMD@GOTPAGE
Lloh1:
	ldr	x27, [x27, _UMAC_CMD@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_bcmgenet_umac_readl
Lloh2:
	adrp	x28, _CMD_SW_RESET@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CMD_SW_RESET@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x25, x0
	ldr	w8, [x21]
	cmp	w8, #132
	b.ne	LBB0_5
; %bb.2:
Lloh4:
	adrp	x26, _MII_BMCR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x22
	bl	_phy_read
	mov	x24, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w1, [x26]
Lloh6:
	adrp	x8, _BMCR_ISOLATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMCR_ISOLATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w24
	mov	x0, x22
	bl	_phy_write
	mov	x26, x0
	cbnz	w0, LBB0_12
	b	LBB0_6
LBB0_4:
	mov	w24, #-1
	b	LBB0_7
LBB0_5:
	mov	w24, #-1
LBB0_6:
Lloh9:
	adrp	x8, _PORT_MODE_EXT_GPHY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PORT_MODE_EXT_GPHY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SYS_PORT_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_PORT_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_sys_writel
	mov	w0, #4
	bl	_udelay
	ldr	w8, [x28]
Lloh15:
	adrp	x9, _CMD_LCL_LOOP_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMD_LCL_LOOP_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w25, w8
	ldr	w2, [x27]
	mov	x0, x21
	bl	_bcmgenet_umac_writel
	mov	w0, #2
	bl	_udelay
LBB0_7:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ldr	w2, [x21]
	mov	w8, #131
	ccmp	w2, w8, #4, eq
	cset	w8, ne
	str	w8, [x21, #4]
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.8:
Lloh18:
	adrp	x9, lJTI0_0@PAGE
Lloh19:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	mov	x0, x21
	bl	_GENET_IS_V4
Lloh20:
	adrp	x8, _PORT_MODE_INT_EPHY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORT_MODE_INT_EPHY@GOTPAGEOFF]
Lloh22:
	adrp	x9, _PORT_MODE_INT_GPHY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PORT_MODE_INT_GPHY@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _SYS_PORT_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SYS_PORT_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_sys_writel
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_22
; %bb.10:
	mov	w23, #0
Lloh27:
	adrp	x22, l_.str.1@PAGE
Lloh28:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_11:
	mov	x26, x24
LBB0_12:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_netdev_err
	b	LBB0_34
LBB0_13:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_34
LBB0_14:
	mov	w0, #16
	bl	_BIT
	cbz	w0, LBB0_16
; %bb.15:
	mov	x23, x0
Lloh36:
	adrp	x22, l_.str.5@PAGE
Lloh37:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_16:
	mov	w23, #0
Lloh38:
	adrp	x22, l_.str.6@PAGE
Lloh39:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_17:
Lloh40:
	adrp	x8, _PORT_MODE_EXT_GPHY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PORT_MODE_EXT_GPHY@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _SYS_PORT_CTRL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SYS_PORT_CTRL@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_sys_writel
	b	LBB0_25
LBB0_18:
Lloh46:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	x8, [x23]
	ldr	w1, [x8]
	bl	_linkmode_test_bit
Lloh49:
	adrp	x8, _PORT_MODE_EXT_RVMII_25@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PORT_MODE_EXT_RVMII_25@GOTPAGEOFF]
Lloh51:
	adrp	x9, _PORT_MODE_EXT_RVMII_50@GOTPAGE
Lloh52:
	ldr	x9, [x9, _PORT_MODE_EXT_RVMII_50@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _SYS_PORT_CTRL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _SYS_PORT_CTRL@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_sys_writel
	mov	w23, #0
Lloh56:
	adrp	x22, l_.str.4@PAGE
Lloh57:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_19:
Lloh58:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_phy_set_max_speed
Lloh61:
	adrp	x8, _PORT_MODE_EXT_EPHY@GOTPAGE
Lloh62:
	ldr	x8, [x8, _PORT_MODE_EXT_EPHY@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
Lloh64:
	adrp	x8, _SYS_PORT_CTRL@GOTPAGE
Lloh65:
	ldr	x8, [x8, _SYS_PORT_CTRL@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_bcmgenet_sys_writel
	tbnz	w24, #31, LBB0_21
; %bb.20:
Lloh67:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x24
	bl	_phy_write
LBB0_21:
	mov	w23, #0
Lloh70:
	adrp	x22, l_.str.3@PAGE
Lloh71:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_25
LBB0_22:
	ldr	w8, [x21]
	cmp	w8, #131
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x21
	bl	_bcmgenet_moca_phy_setup
	mov	w23, #0
Lloh72:
	adrp	x22, l_.str.2@PAGE
Lloh73:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_25
LBB0_24:
	mov	x22, #0
	mov	w23, #0
LBB0_25:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_31
; %bb.26:
Lloh74:
	adrp	x24, _EXT_RGMII_OOB_CTRL@GOTPAGE
Lloh75:
	ldr	x24, [x24, _EXT_RGMII_OOB_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_bcmgenet_ext_readl
	orr	w23, w0, w23
	mov	x0, x21
	bl	_GENET_IS_V1
	cbz	x0, LBB0_28
; %bb.27:
Lloh76:
	adrp	x25, _RGMII_MODE_EN_V123@GOTPAGE
Lloh77:
	ldr	x25, [x25, _RGMII_MODE_EN_V123@GOTPAGEOFF]
	b	LBB0_30
LBB0_28:
	mov	x0, x21
	bl	_GENET_IS_V2
Lloh78:
	adrp	x25, _RGMII_MODE_EN_V123@GOTPAGE
Lloh79:
	ldr	x25, [x25, _RGMII_MODE_EN_V123@GOTPAGEOFF]
	cbnz	x0, LBB0_30
; %bb.29:
	mov	x0, x21
	bl	_GENET_IS_V3
Lloh80:
	adrp	x8, _RGMII_MODE_EN@GOTPAGE
Lloh81:
	ldr	x8, [x8, _RGMII_MODE_EN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x25, x8, x25, eq
LBB0_30:
	ldr	w8, [x25]
	orr	w1, w23, w8
	ldr	w2, [x24]
	mov	x0, x21
	bl	_bcmgenet_ext_writel
LBB0_31:
	cbz	w19, LBB0_33
; %bb.32:
Lloh82:
	adrp	x1, l_.str.8@PAGE
Lloh83:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_info
LBB0_33:
	mov	w26, #0
LBB0_34:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_18-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_19-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.comm	_UMAC_CMD,4,2                   ; @UMAC_CMD
	.comm	_CMD_SW_RESET,4,2               ; @CMD_SW_RESET
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to isolate PHY\n"

	.comm	_PORT_MODE_EXT_GPHY,4,2         ; @PORT_MODE_EXT_GPHY
	.comm	_SYS_PORT_CTRL,4,2              ; @SYS_PORT_CTRL
	.comm	_CMD_LCL_LOOP_EN,4,2            ; @CMD_LCL_LOOP_EN
	.comm	_PORT_MODE_INT_GPHY,4,2         ; @PORT_MODE_INT_GPHY
	.comm	_PORT_MODE_INT_EPHY,4,2         ; @PORT_MODE_INT_EPHY
l_.str.1:                               ; @.str.1
	.asciz	"internal PHY"

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

l_.str.3:                               ; @.str.3
	.asciz	"external MII"

	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_PORT_MODE_EXT_EPHY,4,2         ; @PORT_MODE_EXT_EPHY
l_.str.4:                               ; @.str.4
	.asciz	"external RvMII"

	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_PORT_MODE_EXT_RVMII_50,4,2     ; @PORT_MODE_EXT_RVMII_50
	.comm	_PORT_MODE_EXT_RVMII_25,4,2     ; @PORT_MODE_EXT_RVMII_25
l_.str.5:                               ; @.str.5
	.asciz	"external RGMII (no delay)"

l_.str.6:                               ; @.str.6
	.asciz	"external RGMII (TX delay)"

l_.str.7:                               ; @.str.7
	.asciz	"unknown phy mode: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EXT_RGMII_OOB_CTRL,4,2         ; @EXT_RGMII_OOB_CTRL
	.comm	_RGMII_MODE_EN_V123,4,2         ; @RGMII_MODE_EN_V123
	.comm	_RGMII_MODE_EN,4,2              ; @RGMII_MODE_EN
l_.str.8:                               ; @.str.8
	.asciz	"configuring instance for %s\n"

.subsections_via_symbols
