	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_probe
_bgmac_probe:                           ## @bgmac_probe
	.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, %r14
	movq	24(%rdi), %r13
	addq	$40, %rdi
	callq	_bgmac_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 88(%rax)
	movl	36(%r14), %eax
	movl	%eax, 108(%r15)
	movl	32(%r14), %eax
	movl	%eax, 104(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_bcma_set_drvdata
	movq	64(%r15), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	callq	_of_get_mac_address
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_80
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movl	(%r14), %edx
	cmpl	$2, %edx
	je	LBB0_10
## %bb.7:
	cmpl	$1, %edx
	je	LBB0_14
## %bb.8:
	testl	%edx, %edx
	jne	LBB0_11
## %bb.9:
	leaq	48(%r13), %rax
	jmp	LBB0_15
LBB0_10:
	leaq	32(%r13), %rax
	jmp	LBB0_15
LBB0_14:
	leaq	40(%r13), %rax
LBB0_15:
	movq	(%rax), %rbx
LBB0_16:
	movq	96(%r15), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
	movq	_BCMA_CORE_4706_MAC_GBIT@GOTPCREL(%rip), %r12
	movq	8(%r14), %rcx
	movq	24(%r14), %rax
	movq	8(%rax), %rax
	cmpq	(%r12), %rcx
	jne	LBB0_19
## %bb.17:
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	64(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_28
LBB0_19:
	movq	%rax, 80(%r15)
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	cmpl	$1, %eax
	je	LBB0_24
## %bb.21:
	cmpl	$2, %eax
	jne	LBB0_22
## %bb.25:
	leaq	20(%r13), %rax
	jmp	LBB0_26
LBB0_11:
	movq	64(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_23:
	leaq	28(%r13), %rax
	jmp	LBB0_26
LBB0_24:
	leaq	24(%r13), %rax
	jmp	LBB0_26
LBB0_22:
	leaq	72(%r15), %rax
LBB0_26:
	movq	_BGMAC_PHY_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %edx
	andl	%ecx, %edx
	movl	%edx, 72(%r15)
	movq	64(%r15), %rdi
	cmpl	%ecx, %edx
	jne	LBB0_29
## %bb.27:
	leaq	L_.str.2(%rip), %rsi
LBB0_28:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bcma_set_drvdata
LBB0_80:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_BGMAC_PHY_NOREGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	movq	%r14, %rdi
	callq	_bgmac_is_bcm4707_family
	testl	%eax, %eax
	je	LBB0_30
LBB0_37:
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	_BCMA_HOSTTYPE_PCI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.38:
	movq	64(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_39
LBB0_40:
	movl	16(%r13), %eax
	movq	_BGMAC_BFL_ENETROBO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, (%r15)
	je	LBB0_42
## %bb.41:
	movq	64(%r15), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_warn
	movl	16(%r13), %eax
LBB0_42:
	movq	_BGMAC_BFL_ENETADM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_44
## %bb.43:
	movq	64(%r15), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_warn
LBB0_44:
	movl	56(%r13), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_64
## %bb.45:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_63:
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rdx
	movq	%r15, %rax
	addq	$56, %rax
	movl	56(%r15), %ecx
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_NO_RESET@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_FORCE_SPEED_2500@GOTPCREL(%rip), %rdx
	jmp	LBB0_66
LBB0_30:
	cmpl	$128, 56(%r13)
	jne	LBB0_32
## %bb.31:
	cmpl	$1, (%r14)
	je	LBB0_37
LBB0_32:
	movq	%r15, %rdi
	callq	_bcma_mdio_mii_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_33
## %bb.81:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_33:
	movq	%rbx, 8(%r15)
	movl	72(%r15), %esi
	movq	%rbx, %rdi
	callq	_mdiobus_get_phy
	cmpl	$128, 56(%r13)
	jne	LBB0_37
## %bb.34:
	testq	%rax, %rax
	je	LBB0_37
## %bb.35:
	movq	8(%rax), %rcx
	movl	4(%rcx), %edx
	andl	(%rcx), %edx
	movq	_PHY_ID_BCM54210E@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_37
## %bb.36:
	movq	_PHY_BRCM_EN_MASTER_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_37
LBB0_49:
	movq	_BGMAC_FEAT_SET_RXQ_CLK@GOTPCREL(%rip), %rax
	movl	56(%r15), %edx
	orl	(%rax), %edx
	movq	%r15, %rax
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	addq	$56, %rax
	movq	_BGMAC_FEAT_FLW_CTRL1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_BGMAC_FEAT_SW_TYPE_PHY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 56(%r15)
	movl	60(%r13), %ecx
	movq	_BCMA_PKG_ID_BCM47188@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	je	LBB0_51
## %bb.50:
	movq	_BCMA_PKG_ID_BCM47186@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_52
LBB0_51:
	movq	_BGMAC_FEAT_SW_TYPE_RGMII@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movq	_BGMAC_FEAT_IOST_ATTACHED@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%rax)
LBB0_52:
	movq	_BCMA_PKG_ID_BCM5358@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_68
## %bb.53:
	movq	_BGMAC_FEAT_SW_TYPE_EPHYRMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_67
LBB0_64:
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rdx
	movq	%r15, %rax
	addq	$56, %rax
	movl	56(%r15), %ecx
	jmp	LBB0_65
LBB0_54:
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rdx
	movq	%r15, %rax
	addq	$56, %rax
	movl	56(%r15), %ecx
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_SET_RXQ_CLK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 56(%r15)
	movl	60(%r13), %edx
	movq	_BCMA_PKG_ID_BCM47189@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	jne	LBB0_56
## %bb.55:
	movq	_BGMAC_FEAT_IOST_ATTACHED@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%ecx, (%rax)
LBB0_56:
	movl	(%r14), %edi
	cmpl	$1, %edi
	je	LBB0_60
## %bb.57:
	testl	%edi, %edi
	jne	LBB0_68
## %bb.58:
	movq	_BGMAC_FEAT_CC4_IF_SW_TYPE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	movl	%ecx, (%rax)
	cmpl	%esi, %edx
	jne	LBB0_68
## %bb.59:
	movq	_BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII@GOTPCREL(%rip), %rdx
	jmp	LBB0_66
LBB0_61:
	movq	_BGMAC_FEAT_SET_RXQ_CLK@GOTPCREL(%rip), %rax
	movl	56(%r15), %ecx
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_FLW_CTRL1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_SW_TYPE_PHY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 56(%r15)
	cmpl	$10, 60(%r13)
	jne	LBB0_68
## %bb.62:
	movq	%r15, %rax
	addq	$56, %rax
	movq	_BGMAC_FEAT_SW_TYPE_RGMII@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_IOST_ATTACHED@GOTPCREL(%rip), %rdx
	jmp	LBB0_66
LBB0_46:
	movl	56(%r15), %ecx
	jmp	LBB0_48
LBB0_47:
	movq	_BGMAC_FEAT_CLKCTLST@GOTPCREL(%rip), %rax
	movl	56(%r15), %ecx
	orl	(%rax), %ecx
LBB0_48:
	movq	_BGMAC_FEAT_FLW_CTRL2@GOTPCREL(%rip), %rdx
	movq	%r15, %rax
	addq	$56, %rax
LBB0_65:
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_SET_RXQ_CLK@GOTPCREL(%rip), %rdx
LBB0_66:
	movl	(%rdx), %edx
LBB0_67:
	orl	%edx, %ecx
	movl	%ecx, (%rax)
LBB0_68:
	movq	%r14, %rdi
	callq	_bgmac_is_bcm4707_family
	testl	%eax, %eax
	jne	LBB0_71
## %bb.69:
	cmpl	$3, 16(%r14)
	jl	LBB0_71
## %bb.70:
	movq	_BGMAC_FEAT_MISC_PLL_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r15)
LBB0_71:
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_73
## %bb.72:
	movq	_BGMAC_FEAT_CMN_PHY_CTL@GOTPCREL(%rip), %rax
	movl	56(%r15), %ecx
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_NO_CLR_MIB@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 56(%r15)
LBB0_73:
	cmpl	$4, 16(%r14)
	jl	LBB0_75
## %bb.74:
	movq	_BGMAC_FEAT_CMDCFG_SR_REV4@GOTPCREL(%rip), %rax
	movl	56(%r15), %ecx
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_TX_MASK_SETUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_BGMAC_FEAT_RX_MASK_SETUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 56(%r15)
LBB0_75:
	movq	_bcma_bgmac_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_bcma_bgmac_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_bcma_bgmac_idm_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_bcma_bgmac_idm_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_bcma_bgmac_clk_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_bcma_bgmac_clk_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_bcma_bgmac_cco_ctl_maskset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_bcma_bgmac_get_bus_clock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_bcma_bgmac_cmn_maskset32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	cmpq	$0, 8(%r15)
	jne	LBB0_76
## %bb.77:
	movq	_bgmac_phy_connect_direct@GOTPCREL(%rip), %rax
	jmp	LBB0_78
LBB0_76:
	movq	_bcma_phy_connect@GOTPCREL(%rip), %rax
LBB0_78:
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_bgmac_enet_probe
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_79
LBB0_39:
	movq	8(%r15), %rdi
	callq	_bcma_mdio_mii_unregister
	jmp	LBB0_13
LBB0_79:
	xorl	%ebx, %ebx
	jmp	LBB0_80
LBB0_60:
	movq	_BGMAC_FEAT_IRQ_ID_OOB_6@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_BGMAC_FEAT_CC7_IF_TYPE_RGMII@GOTPCREL(%rip), %rdx
	jmp	LBB0_66
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_49, LBB0_49-LJTI0_0
.set L0_0_set_63, LBB0_63-LJTI0_0
.set L0_0_set_61, LBB0_61-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
LJTI0_0:
	.long	L0_0_set_54
	.long	L0_0_set_49
	.long	L0_0_set_49
	.long	L0_0_set_63
	.long	L0_0_set_61
	.long	L0_0_set_46
	.long	L0_0_set_47
	.long	L0_0_set_63
	.long	L0_0_set_63
	.end_data_region
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported core_unit %d\n"

	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_BCMA_CORE_4706_MAC_GBIT,8,3    ## @BCMA_CORE_4706_MAC_GBIT
L_.str.1:                               ## @.str.1
	.asciz	"GMAC CMN core not found (required for BCM4706)\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BGMAC_PHY_MASK,4,2             ## @BGMAC_PHY_MASK
L_.str.2:                               ## @.str.2
	.asciz	"No PHY found\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found PHY addr: %d%s\n"

	.comm	_BGMAC_PHY_NOREGS,4,2           ## @BGMAC_PHY_NOREGS
L_.str.4:                               ## @.str.4
	.asciz	" (NOREGS)"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_PHY_ID_BCM54210E,4,2           ## @PHY_ID_BCM54210E
	.comm	_PHY_BRCM_EN_MASTER_MODE,4,2    ## @PHY_BRCM_EN_MASTER_MODE
	.comm	_BCMA_HOSTTYPE_PCI,8,3          ## @BCMA_HOSTTYPE_PCI
L_.str.6:                               ## @.str.6
	.asciz	"PCI setup not implemented\n"

	.comm	_BGMAC_BFL_ENETROBO,4,2         ## @BGMAC_BFL_ENETROBO
L_.str.7:                               ## @.str.7
	.asciz	"Support for Roboswitch not implemented\n"

	.comm	_BGMAC_BFL_ENETADM,4,2          ## @BGMAC_BFL_ENETADM
L_.str.8:                               ## @.str.8
	.asciz	"Support for ADMtek ethernet switch not implemented\n"

	.comm	_BGMAC_FEAT_CLKCTLST,4,2        ## @BGMAC_FEAT_CLKCTLST
	.comm	_BGMAC_FEAT_FLW_CTRL2,4,2       ## @BGMAC_FEAT_FLW_CTRL2
	.comm	_BGMAC_FEAT_SET_RXQ_CLK,4,2     ## @BGMAC_FEAT_SET_RXQ_CLK
	.comm	_BGMAC_FEAT_FLW_CTRL1,4,2       ## @BGMAC_FEAT_FLW_CTRL1
	.comm	_BGMAC_FEAT_SW_TYPE_PHY,4,2     ## @BGMAC_FEAT_SW_TYPE_PHY
	.comm	_BCMA_PKG_ID_BCM47188,4,2       ## @BCMA_PKG_ID_BCM47188
	.comm	_BCMA_PKG_ID_BCM47186,4,2       ## @BCMA_PKG_ID_BCM47186
	.comm	_BGMAC_FEAT_SW_TYPE_RGMII,4,2   ## @BGMAC_FEAT_SW_TYPE_RGMII
	.comm	_BGMAC_FEAT_IOST_ATTACHED,4,2   ## @BGMAC_FEAT_IOST_ATTACHED
	.comm	_BCMA_PKG_ID_BCM5358,4,2        ## @BCMA_PKG_ID_BCM5358
	.comm	_BGMAC_FEAT_SW_TYPE_EPHYRMII,4,2 ## @BGMAC_FEAT_SW_TYPE_EPHYRMII
	.comm	_BCMA_PKG_ID_BCM47189,4,2       ## @BCMA_PKG_ID_BCM47189
	.comm	_BGMAC_FEAT_CC4_IF_SW_TYPE,4,2  ## @BGMAC_FEAT_CC4_IF_SW_TYPE
	.comm	_BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII,4,2 ## @BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII
	.comm	_BGMAC_FEAT_IRQ_ID_OOB_6,4,2    ## @BGMAC_FEAT_IRQ_ID_OOB_6
	.comm	_BGMAC_FEAT_CC7_IF_TYPE_RGMII,4,2 ## @BGMAC_FEAT_CC7_IF_TYPE_RGMII
	.comm	_BGMAC_FEAT_NO_RESET,4,2        ## @BGMAC_FEAT_NO_RESET
	.comm	_BGMAC_FEAT_FORCE_SPEED_2500,4,2 ## @BGMAC_FEAT_FORCE_SPEED_2500
	.comm	_BGMAC_FEAT_MISC_PLL_REQ,4,2    ## @BGMAC_FEAT_MISC_PLL_REQ
	.comm	_BGMAC_FEAT_CMN_PHY_CTL,4,2     ## @BGMAC_FEAT_CMN_PHY_CTL
	.comm	_BGMAC_FEAT_NO_CLR_MIB,4,2      ## @BGMAC_FEAT_NO_CLR_MIB
	.comm	_BGMAC_FEAT_CMDCFG_SR_REV4,4,2  ## @BGMAC_FEAT_CMDCFG_SR_REV4
	.comm	_BGMAC_FEAT_TX_MASK_SETUP,4,2   ## @BGMAC_FEAT_TX_MASK_SETUP
	.comm	_BGMAC_FEAT_RX_MASK_SETUP,4,2   ## @BGMAC_FEAT_RX_MASK_SETUP
	.comm	_bcma_bgmac_read,4,2            ## @bcma_bgmac_read
	.comm	_bcma_bgmac_write,4,2           ## @bcma_bgmac_write
	.comm	_bcma_bgmac_idm_read,4,2        ## @bcma_bgmac_idm_read
	.comm	_bcma_bgmac_idm_write,4,2       ## @bcma_bgmac_idm_write
	.comm	_bcma_bgmac_clk_enabled,4,2     ## @bcma_bgmac_clk_enabled
	.comm	_bcma_bgmac_clk_enable,4,2      ## @bcma_bgmac_clk_enable
	.comm	_bcma_bgmac_cco_ctl_maskset,4,2 ## @bcma_bgmac_cco_ctl_maskset
	.comm	_bcma_bgmac_get_bus_clock,4,2   ## @bcma_bgmac_get_bus_clock
	.comm	_bcma_bgmac_cmn_maskset32,4,2   ## @bcma_bgmac_cmn_maskset32
	.comm	_bcma_phy_connect,4,2           ## @bcma_phy_connect
	.comm	_bgmac_phy_connect_direct,4,2   ## @bgmac_phy_connect_direct
	.no_dead_strip	_bgmac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_probe
_bgmac_probe:                           ; @bgmac_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x23, [x0, #24]
	add	x0, x0, #40
	bl	_bgmac_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #88]
	ldr	d0, [x19, #32]
	str	d0, [x0, #104]
	mov	x0, x19
	mov	x1, x20
	bl	_bcma_set_drvdata
	ldr	x8, [x20, #64]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_of_get_mac_address
	mov	x21, x0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_4:
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_13
; %bb.6:
	ldr	w8, [x19]
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #1
	b.eq	LBB0_11
; %bb.8:
	cbnz	w8, LBB0_24
; %bb.9:
	add	x8, x23, #48
	b	LBB0_12
LBB0_10:
	add	x8, x23, #32
	b	LBB0_12
LBB0_11:
	add	x8, x23, #40
LBB0_12:
	ldr	x21, [x8]
LBB0_13:
	ldr	x8, [x20, #96]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_ether_addr_copy
Lloh3:
	adrp	x22, _BCMA_CORE_4706_MAC_GBIT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BCMA_CORE_4706_MAC_GBIT@GOTPAGEOFF]
	ldr	x9, [x19, #8]
	ldr	x10, [x22]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cmp	x9, x10
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_16
; %bb.14:
	str	x8, [x20, #80]
	ldr	w8, [x19]
	add	x9, x23, #28
	add	x10, x23, #24
	cmp	w8, #2
	add	x11, x23, #20
	add	x12, x20, #72
	csel	x11, x11, x12, eq
	cmp	w8, #1
	csel	x10, x10, x11, eq
	cmp	w8, #0
	csel	x8, x9, x10, eq
Lloh5:
	adrp	x9, _BGMAC_PHY_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BGMAC_PHY_MASK@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	and	w2, w8, w9
	str	w2, [x20, #72]
	ldr	x0, [x20, #64]
	cmp	w2, w9
	b.ne	LBB0_21
; %bb.15:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	x0, [x20, #64]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_19:
	mov	x0, x19
	mov	x1, #0
	bl	_bcma_set_drvdata
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
Lloh14:
	adrp	x8, _BGMAC_PHY_NOREGS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BGMAC_PHY_NOREGS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, l_.str.5@PAGE
Lloh18:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh19:
	adrp	x10, l_.str.4@PAGE
Lloh20:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	w2, w8
	csel	x3, x10, x9, eq
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	mov	x0, x19
	bl	_bgmac_is_bcm4707_family
	cbz	w0, LBB0_32
LBB0_22:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _BCMA_HOSTTYPE_PCI@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BCMA_HOSTTYPE_PCI@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.23:
	ldr	x0, [x20, #64]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
Lloh28:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_68
LBB0_24:
	ldr	x0, [x20, #64]
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh33:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_25:
	ldr	w8, [x23, #16]
Lloh35:
	adrp	x9, _BGMAC_BFL_ENETROBO@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BGMAC_BFL_ENETROBO@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	ands	w9, w9, w8
	cset	w10, ne
	str	w10, [x20]
	cbz	w9, LBB0_27
; %bb.26:
	ldr	x0, [x20, #64]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_warn
	ldr	w8, [x23, #16]
LBB0_27:
Lloh40:
	adrp	x9, _BGMAC_BFL_ENETADM@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BGMAC_BFL_ENETADM@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
	ldr	x0, [x20, #64]
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_warn
LBB0_29:
	ldr	w8, [x23, #56]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_45
; %bb.30:
Lloh45:
	adrp	x9, lJTI0_0@PAGE
Lloh46:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_31
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_31:
Lloh47:
	adrp	x8, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x8]
	mov	x8, x20
	ldr	w10, [x8, #56]!
Lloh50:
	adrp	x11, _BGMAC_FEAT_NO_RESET@GOTPAGE
Lloh51:
	ldr	x11, [x11, _BGMAC_FEAT_NO_RESET@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh52:
	ldr	w10, [x11]
	orr	w10, w10, w9
Lloh53:
	adrp	x9, _BGMAC_FEAT_FORCE_SPEED_2500@GOTPAGE
Lloh54:
	ldr	x9, [x9, _BGMAC_FEAT_FORCE_SPEED_2500@GOTPAGEOFF]
	b	LBB0_58
LBB0_32:
	ldr	w8, [x23, #56]
	cmp	w8, #128
	b.ne	LBB0_34
; %bb.33:
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_22
LBB0_34:
	mov	x0, x20
	bl	_bcma_mdio_mii_register
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_36
; %bb.35:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_19
LBB0_36:
	str	x21, [x20, #8]
	ldr	w1, [x20, #72]
	mov	x0, x21
	bl	_mdiobus_get_phy
	ldr	w8, [x23, #56]
	cmp	w8, #128
	b.ne	LBB0_22
; %bb.37:
	cbz	x0, LBB0_22
; %bb.38:
	ldr	x8, [x0, #8]
	ldp	w9, w8, [x8]
	and	w8, w8, w9
Lloh55:
	adrp	x9, _PHY_ID_BCM54210E@GOTPAGE
Lloh56:
	ldr	x9, [x9, _PHY_ID_BCM54210E@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.39:
Lloh58:
	adrp	x8, _PHY_BRCM_EN_MASTER_MODE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PHY_BRCM_EN_MASTER_MODE@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	b	LBB0_22
LBB0_40:
Lloh61:
	adrp	x8, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x8]
	mov	x8, x20
	ldr	w10, [x8, #56]!
	orr	w9, w10, w9
Lloh64:
	adrp	x10, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh65:
	ldr	x10, [x10, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
Lloh66:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh67:
	adrp	x10, _BGMAC_FEAT_FLW_CTRL1@GOTPAGE
Lloh68:
	ldr	x10, [x10, _BGMAC_FEAT_FLW_CTRL1@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh70:
	adrp	x10, _BGMAC_FEAT_SW_TYPE_PHY@GOTPAGE
Lloh71:
	ldr	x10, [x10, _BGMAC_FEAT_SW_TYPE_PHY@GOTPAGEOFF]
Lloh72:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w10, [x23, #60]
Lloh73:
	adrp	x11, _BCMA_PKG_ID_BCM47188@GOTPAGE
Lloh74:
	ldr	x11, [x11, _BCMA_PKG_ID_BCM47188@GOTPAGEOFF]
Lloh75:
	ldr	w11, [x11]
	cmp	w10, w11
	b.eq	LBB0_42
; %bb.41:
Lloh76:
	adrp	x11, _BCMA_PKG_ID_BCM47186@GOTPAGE
Lloh77:
	ldr	x11, [x11, _BCMA_PKG_ID_BCM47186@GOTPAGEOFF]
Lloh78:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_43
LBB0_42:
Lloh79:
	adrp	x11, _BGMAC_FEAT_SW_TYPE_RGMII@GOTPAGE
Lloh80:
	ldr	x11, [x11, _BGMAC_FEAT_SW_TYPE_RGMII@GOTPAGEOFF]
Lloh81:
	ldr	w11, [x11]
	orr	w9, w11, w9
Lloh82:
	adrp	x11, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGE
Lloh83:
	ldr	x11, [x11, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGEOFF]
Lloh84:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x8]
LBB0_43:
Lloh85:
	adrp	x11, _BCMA_PKG_ID_BCM5358@GOTPAGE
Lloh86:
	ldr	x11, [x11, _BCMA_PKG_ID_BCM5358@GOTPAGEOFF]
Lloh87:
	ldr	w11, [x11]
	cmp	w10, w11
	b.ne	LBB0_60
; %bb.44:
Lloh88:
	adrp	x10, _BGMAC_FEAT_SW_TYPE_EPHYRMII@GOTPAGE
Lloh89:
	ldr	x10, [x10, _BGMAC_FEAT_SW_TYPE_EPHYRMII@GOTPAGEOFF]
Lloh90:
	ldr	w10, [x10]
	b	LBB0_59
LBB0_45:
Lloh91:
	adrp	x8, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh92:
	ldr	x8, [x8, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x8]
	mov	x8, x20
	ldr	w10, [x8, #56]!
	orr	w10, w10, w9
	b	LBB0_57
LBB0_46:
Lloh94:
	adrp	x9, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh95:
	ldr	x9, [x9, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
	mov	x8, x20
	ldr	w10, [x8, #56]!
Lloh96:
	ldr	w9, [x9]
	orr	w9, w10, w9
Lloh97:
	adrp	x10, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGE
Lloh98:
	ldr	x10, [x10, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGEOFF]
Lloh99:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w11, [x23, #60]
Lloh100:
	adrp	x10, _BCMA_PKG_ID_BCM47189@GOTPAGE
Lloh101:
	ldr	x10, [x10, _BCMA_PKG_ID_BCM47189@GOTPAGEOFF]
Lloh102:
	ldr	w12, [x10]
	cmp	w11, w12
	b.ne	LBB0_48
; %bb.47:
Lloh103:
	adrp	x10, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGE
Lloh104:
	ldr	x10, [x10, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGEOFF]
Lloh105:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_48:
	ldr	w10, [x19]
	cmp	w10, #1
	b.eq	LBB0_69
; %bb.49:
	cbnz	w10, LBB0_60
; %bb.50:
Lloh106:
	adrp	x10, _BGMAC_FEAT_CC4_IF_SW_TYPE@GOTPAGE
Lloh107:
	ldr	x10, [x10, _BGMAC_FEAT_CC4_IF_SW_TYPE@GOTPAGEOFF]
Lloh108:
	ldr	w10, [x10]
	orr	w10, w9, w10
	str	w10, [x8]
	cmp	w11, w12
	b.ne	LBB0_60
; %bb.51:
Lloh109:
	adrp	x9, _BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII@GOTPAGE
Lloh110:
	ldr	x9, [x9, _BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII@GOTPAGEOFF]
	b	LBB0_58
LBB0_52:
Lloh111:
	adrp	x8, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGE
Lloh112:
	ldr	x8, [x8, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x8]
	mov	x8, x20
	ldr	w10, [x8, #56]!
	orr	w9, w10, w9
Lloh114:
	adrp	x10, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh115:
	ldr	x10, [x10, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
Lloh116:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh117:
	adrp	x10, _BGMAC_FEAT_FLW_CTRL1@GOTPAGE
Lloh118:
	ldr	x10, [x10, _BGMAC_FEAT_FLW_CTRL1@GOTPAGEOFF]
Lloh119:
	ldr	w10, [x10]
Lloh120:
	adrp	x11, _BGMAC_FEAT_SW_TYPE_PHY@GOTPAGE
Lloh121:
	ldr	x11, [x11, _BGMAC_FEAT_SW_TYPE_PHY@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh122:
	ldr	w10, [x11]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w10, [x23, #60]
	cmp	w10, #10
	b.ne	LBB0_60
; %bb.53:
Lloh123:
	adrp	x10, _BGMAC_FEAT_SW_TYPE_RGMII@GOTPAGE
Lloh124:
	ldr	x10, [x10, _BGMAC_FEAT_SW_TYPE_RGMII@GOTPAGEOFF]
Lloh125:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh126:
	adrp	x9, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGE
Lloh127:
	ldr	x9, [x9, _BGMAC_FEAT_IOST_ATTACHED@GOTPAGEOFF]
	b	LBB0_58
LBB0_54:
	ldr	w9, [x20, #56]
	b	LBB0_56
LBB0_55:
Lloh128:
	adrp	x8, _BGMAC_FEAT_CLKCTLST@GOTPAGE
Lloh129:
	ldr	x8, [x8, _BGMAC_FEAT_CLKCTLST@GOTPAGEOFF]
Lloh130:
	ldr	w8, [x8]
	ldr	w9, [x20, #56]
	orr	w9, w9, w8
LBB0_56:
Lloh131:
	adrp	x8, _BGMAC_FEAT_FLW_CTRL2@GOTPAGE
Lloh132:
	ldr	x8, [x8, _BGMAC_FEAT_FLW_CTRL2@GOTPAGEOFF]
Lloh133:
	ldr	w10, [x8]
	add	x8, x20, #56
	orr	w10, w9, w10
LBB0_57:
Lloh134:
	adrp	x9, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGE
Lloh135:
	ldr	x9, [x9, _BGMAC_FEAT_SET_RXQ_CLK@GOTPAGEOFF]
LBB0_58:
	ldr	w9, [x9]
LBB0_59:
	orr	w9, w9, w10
	str	w9, [x8]
LBB0_60:
	mov	x0, x19
	bl	_bgmac_is_bcm4707_family
	cbnz	w0, LBB0_63
; %bb.61:
	ldr	w8, [x19, #16]
	cmp	w8, #3
	b.lt	LBB0_63
; %bb.62:
Lloh136:
	adrp	x8, _BGMAC_FEAT_MISC_PLL_REQ@GOTPAGE
Lloh137:
	ldr	x8, [x8, _BGMAC_FEAT_MISC_PLL_REQ@GOTPAGEOFF]
Lloh138:
	ldr	w8, [x8]
	ldr	w9, [x20, #56]
	orr	w8, w9, w8
	str	w8, [x20, #56]
LBB0_63:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_65
; %bb.64:
Lloh139:
	adrp	x8, _BGMAC_FEAT_CMN_PHY_CTL@GOTPAGE
Lloh140:
	ldr	x8, [x8, _BGMAC_FEAT_CMN_PHY_CTL@GOTPAGEOFF]
Lloh141:
	ldr	w8, [x8]
	ldr	w9, [x20, #56]
	orr	w8, w9, w8
Lloh142:
	adrp	x9, _BGMAC_FEAT_NO_CLR_MIB@GOTPAGE
Lloh143:
	ldr	x9, [x9, _BGMAC_FEAT_NO_CLR_MIB@GOTPAGEOFF]
Lloh144:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #56]
LBB0_65:
	ldr	w8, [x19, #16]
	cmp	w8, #4
	b.lt	LBB0_67
; %bb.66:
Lloh145:
	adrp	x8, _BGMAC_FEAT_CMDCFG_SR_REV4@GOTPAGE
Lloh146:
	ldr	x8, [x8, _BGMAC_FEAT_CMDCFG_SR_REV4@GOTPAGEOFF]
Lloh147:
	ldr	w8, [x8]
	ldr	w9, [x20, #56]
	orr	w8, w9, w8
Lloh148:
	adrp	x9, _BGMAC_FEAT_TX_MASK_SETUP@GOTPAGE
Lloh149:
	ldr	x9, [x9, _BGMAC_FEAT_TX_MASK_SETUP@GOTPAGEOFF]
Lloh150:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh151:
	adrp	x9, _BGMAC_FEAT_RX_MASK_SETUP@GOTPAGE
Lloh152:
	ldr	x9, [x9, _BGMAC_FEAT_RX_MASK_SETUP@GOTPAGEOFF]
Lloh153:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #56]
LBB0_67:
Lloh154:
	adrp	x8, _bcma_bgmac_read@GOTPAGE
Lloh155:
	ldr	x8, [x8, _bcma_bgmac_read@GOTPAGEOFF]
Lloh156:
	ldr	w8, [x8]
	str	w8, [x20, #52]
Lloh157:
	adrp	x8, _bcma_bgmac_write@GOTPAGE
Lloh158:
	ldr	x8, [x8, _bcma_bgmac_write@GOTPAGEOFF]
Lloh159:
	ldr	w8, [x8]
Lloh160:
	adrp	x9, _bcma_bgmac_idm_read@GOTPAGE
Lloh161:
	ldr	x9, [x9, _bcma_bgmac_idm_read@GOTPAGEOFF]
Lloh162:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
Lloh163:
	adrp	x8, _bcma_bgmac_idm_write@GOTPAGE
Lloh164:
	ldr	x8, [x8, _bcma_bgmac_idm_write@GOTPAGEOFF]
Lloh165:
	ldr	w8, [x8]
Lloh166:
	adrp	x9, _bcma_bgmac_clk_enabled@GOTPAGE
Lloh167:
	ldr	x9, [x9, _bcma_bgmac_clk_enabled@GOTPAGEOFF]
Lloh168:
	ldr	w9, [x9]
Lloh169:
	adrp	x10, _bcma_bgmac_clk_enable@GOTPAGE
Lloh170:
	ldr	x10, [x10, _bcma_bgmac_clk_enable@GOTPAGEOFF]
	stp	w9, w8, [x20, #36]
Lloh171:
	ldr	w8, [x10]
Lloh172:
	adrp	x9, _bcma_bgmac_cco_ctl_maskset@GOTPAGE
Lloh173:
	ldr	x9, [x9, _bcma_bgmac_cco_ctl_maskset@GOTPAGEOFF]
Lloh174:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #28]
Lloh175:
	adrp	x8, _bcma_bgmac_get_bus_clock@GOTPAGE
Lloh176:
	ldr	x8, [x8, _bcma_bgmac_get_bus_clock@GOTPAGEOFF]
Lloh177:
	ldr	w8, [x8]
Lloh178:
	adrp	x9, _bcma_bgmac_cmn_maskset32@GOTPAGE
Lloh179:
	ldr	x9, [x9, _bcma_bgmac_cmn_maskset32@GOTPAGEOFF]
Lloh180:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
	ldr	x8, [x20, #8]
Lloh181:
	adrp	x9, _bgmac_phy_connect_direct@GOTPAGE
Lloh182:
	ldr	x9, [x9, _bgmac_phy_connect_direct@GOTPAGEOFF]
Lloh183:
	adrp	x10, _bcma_phy_connect@GOTPAGE
Lloh184:
	ldr	x10, [x10, _bcma_phy_connect@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x20
	bl	_bgmac_enet_probe
	mov	x21, x0
	cbz	w0, LBB0_20
LBB0_68:
	ldr	x0, [x20, #8]
	bl	_bcma_mdio_mii_unregister
	b	LBB0_19
LBB0_69:
Lloh185:
	adrp	x10, _BGMAC_FEAT_IRQ_ID_OOB_6@GOTPAGE
Lloh186:
	ldr	x10, [x10, _BGMAC_FEAT_IRQ_ID_OOB_6@GOTPAGEOFF]
Lloh187:
	ldr	w10, [x10]
	orr	w10, w9, w10
Lloh188:
	adrp	x9, _BGMAC_FEAT_CC7_IF_TYPE_RGMII@GOTPAGE
Lloh189:
	ldr	x9, [x9, _BGMAC_FEAT_CC7_IF_TYPE_RGMII@GOTPAGEOFF]
	b	LBB0_58
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGot	Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGotLdr	Lloh148, Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh183, Lloh184
	.loh AdrpLdrGot	Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGot	Lloh188, Lloh189
	.loh AdrpLdrGotLdr	Lloh185, Lloh186, Lloh187
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_46-LBB0_31)>>2
	.byte	(LBB0_40-LBB0_31)>>2
	.byte	(LBB0_40-LBB0_31)>>2
	.byte	(LBB0_31-LBB0_31)>>2
	.byte	(LBB0_52-LBB0_31)>>2
	.byte	(LBB0_54-LBB0_31)>>2
	.byte	(LBB0_55-LBB0_31)>>2
	.byte	(LBB0_31-LBB0_31)>>2
	.byte	(LBB0_31-LBB0_31)>>2
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported core_unit %d\n"

	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_BCMA_CORE_4706_MAC_GBIT,8,3    ; @BCMA_CORE_4706_MAC_GBIT
l_.str.1:                               ; @.str.1
	.asciz	"GMAC CMN core not found (required for BCM4706)\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BGMAC_PHY_MASK,4,2             ; @BGMAC_PHY_MASK
l_.str.2:                               ; @.str.2
	.asciz	"No PHY found\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found PHY addr: %d%s\n"

	.comm	_BGMAC_PHY_NOREGS,4,2           ; @BGMAC_PHY_NOREGS
l_.str.4:                               ; @.str.4
	.asciz	" (NOREGS)"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_PHY_ID_BCM54210E,4,2           ; @PHY_ID_BCM54210E
	.comm	_PHY_BRCM_EN_MASTER_MODE,4,2    ; @PHY_BRCM_EN_MASTER_MODE
	.comm	_BCMA_HOSTTYPE_PCI,8,3          ; @BCMA_HOSTTYPE_PCI
l_.str.6:                               ; @.str.6
	.asciz	"PCI setup not implemented\n"

	.comm	_BGMAC_BFL_ENETROBO,4,2         ; @BGMAC_BFL_ENETROBO
l_.str.7:                               ; @.str.7
	.asciz	"Support for Roboswitch not implemented\n"

	.comm	_BGMAC_BFL_ENETADM,4,2          ; @BGMAC_BFL_ENETADM
l_.str.8:                               ; @.str.8
	.asciz	"Support for ADMtek ethernet switch not implemented\n"

	.comm	_BGMAC_FEAT_CLKCTLST,4,2        ; @BGMAC_FEAT_CLKCTLST
	.comm	_BGMAC_FEAT_FLW_CTRL2,4,2       ; @BGMAC_FEAT_FLW_CTRL2
	.comm	_BGMAC_FEAT_SET_RXQ_CLK,4,2     ; @BGMAC_FEAT_SET_RXQ_CLK
	.comm	_BGMAC_FEAT_FLW_CTRL1,4,2       ; @BGMAC_FEAT_FLW_CTRL1
	.comm	_BGMAC_FEAT_SW_TYPE_PHY,4,2     ; @BGMAC_FEAT_SW_TYPE_PHY
	.comm	_BCMA_PKG_ID_BCM47188,4,2       ; @BCMA_PKG_ID_BCM47188
	.comm	_BCMA_PKG_ID_BCM47186,4,2       ; @BCMA_PKG_ID_BCM47186
	.comm	_BGMAC_FEAT_SW_TYPE_RGMII,4,2   ; @BGMAC_FEAT_SW_TYPE_RGMII
	.comm	_BGMAC_FEAT_IOST_ATTACHED,4,2   ; @BGMAC_FEAT_IOST_ATTACHED
	.comm	_BCMA_PKG_ID_BCM5358,4,2        ; @BCMA_PKG_ID_BCM5358
	.comm	_BGMAC_FEAT_SW_TYPE_EPHYRMII,4,2 ; @BGMAC_FEAT_SW_TYPE_EPHYRMII
	.comm	_BCMA_PKG_ID_BCM47189,4,2       ; @BCMA_PKG_ID_BCM47189
	.comm	_BGMAC_FEAT_CC4_IF_SW_TYPE,4,2  ; @BGMAC_FEAT_CC4_IF_SW_TYPE
	.comm	_BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII,4,2 ; @BGMAC_FEAT_CC4_IF_SW_TYPE_RGMII
	.comm	_BGMAC_FEAT_IRQ_ID_OOB_6,4,2    ; @BGMAC_FEAT_IRQ_ID_OOB_6
	.comm	_BGMAC_FEAT_CC7_IF_TYPE_RGMII,4,2 ; @BGMAC_FEAT_CC7_IF_TYPE_RGMII
	.comm	_BGMAC_FEAT_NO_RESET,4,2        ; @BGMAC_FEAT_NO_RESET
	.comm	_BGMAC_FEAT_FORCE_SPEED_2500,4,2 ; @BGMAC_FEAT_FORCE_SPEED_2500
	.comm	_BGMAC_FEAT_MISC_PLL_REQ,4,2    ; @BGMAC_FEAT_MISC_PLL_REQ
	.comm	_BGMAC_FEAT_CMN_PHY_CTL,4,2     ; @BGMAC_FEAT_CMN_PHY_CTL
	.comm	_BGMAC_FEAT_NO_CLR_MIB,4,2      ; @BGMAC_FEAT_NO_CLR_MIB
	.comm	_BGMAC_FEAT_CMDCFG_SR_REV4,4,2  ; @BGMAC_FEAT_CMDCFG_SR_REV4
	.comm	_BGMAC_FEAT_TX_MASK_SETUP,4,2   ; @BGMAC_FEAT_TX_MASK_SETUP
	.comm	_BGMAC_FEAT_RX_MASK_SETUP,4,2   ; @BGMAC_FEAT_RX_MASK_SETUP
	.comm	_bcma_bgmac_read,4,2            ; @bcma_bgmac_read
	.comm	_bcma_bgmac_write,4,2           ; @bcma_bgmac_write
	.comm	_bcma_bgmac_idm_read,4,2        ; @bcma_bgmac_idm_read
	.comm	_bcma_bgmac_idm_write,4,2       ; @bcma_bgmac_idm_write
	.comm	_bcma_bgmac_clk_enabled,4,2     ; @bcma_bgmac_clk_enabled
	.comm	_bcma_bgmac_clk_enable,4,2      ; @bcma_bgmac_clk_enable
	.comm	_bcma_bgmac_cco_ctl_maskset,4,2 ; @bcma_bgmac_cco_ctl_maskset
	.comm	_bcma_bgmac_get_bus_clock,4,2   ; @bcma_bgmac_get_bus_clock
	.comm	_bcma_bgmac_cmn_maskset32,4,2   ; @bcma_bgmac_cmn_maskset32
	.comm	_bcma_phy_connect,4,2           ; @bcma_phy_connect
	.comm	_bgmac_phy_connect_direct,4,2   ; @bgmac_phy_connect_direct
	.no_dead_strip	_bgmac_probe
.subsections_via_symbols
