	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bcm_enet_open
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bcm_enet_open:                         ## @bcm_enet_open
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$3, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	216(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, 96(%r12)
	je	LBB0_9
## %bb.1:
	movq	_PHY_ID_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	$0, 208(%r12)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	200(%r12), %r8d
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_snprintf
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_bcm_enet_adjust_phy_link@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_phy_connect
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_3:
	movq	_SUPPORTED_10baseT_Half@GOTPCREL(%rip), %rcx
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_SUPPORTED_100baseT_Half@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_Pause@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movl	%eax, 4(%rbx)
	cmpq	$0, 192(%r12)
	je	LBB0_7
## %bb.4:
	cmpq	$0, 184(%r12)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 176(%r12)
	je	LBB0_7
## %bb.6:
	orl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_8:
	movl	%eax, 4(%rbx)
	movl	16(%rbx), %edx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	movq	$0, 168(%r12)
	movq	$-1, (%r12)
	movq	%rbx, 40(%r12)
LBB0_9:
	movq	_ENET_IRMASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_enet_writel
	movl	108(%r12), %edi
	callq	_ENETDMA_IRMASK_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	104(%r12), %edi
	callq	_ENETDMA_IRMASK_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movq	_bcm_enet_isr_mac@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edi
	movl	8(%r14), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_33
## %bb.10:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	48(%r12), %edi
	movq	_bcm_enet_isr_dma@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_IRQF_SAMPLE_RANDOM@GOTPCREL(%rip), %rax
	movq	_IRQF_DISABLED@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rax), %edx
	movl	8(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.11:
	movl	52(%r12), %edi
	movl	(%r13), %esi
	movl	(%r15), %edx
	movl	8(%r14), %ecx
	movq	%r14, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.12:
	xorl	%edi, %edi
	callq	_ENET_PML_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	xorl	%edi, %edi
	callq	_ENET_PMH_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$1, %edi
	callq	_ENET_PML_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$1, %edi
	callq	_ENET_PMH_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$2, %edi
	callq	_ENET_PML_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$2, %edi
	callq	_ENET_PMH_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$3, %edi
	callq	_ENET_PML_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	$3, %edi
	callq	_ENET_PMH_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_writel
	movl	4(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bcm_enet_set_mac_address
	movl	8(%r12), %ebx
	shll	$2, %ebx
	leaq	12(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%ebx, 16(%r12)
	movq	%r13, 56(%r12)
	movl	20(%r12), %ebx
	shll	$2, %ebx
	leaq	24(%r12), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%ebx, 28(%r12)
	movq	%r13, 64(%r12)
	movl	20(%r12), %edi
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 72(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movl	20(%r12), %eax
	movl	%eax, 32(%r12)
	leaq	144(%r12), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 152(%r12)
	callq	_spin_lock_init
	movl	8(%r12), %edi
	shll	$3, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 120(%r12)
	movq	$0, 136(%r12)
	movq	_ENETDMA_BUFALLOC_FORCE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_BUFALLOC_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movq	%r14, %rdi
	callq	_bcm_enet_refill_rx
	testq	%rax, %rax
	je	LBB0_34
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	8(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.22:
	xorl	%r13d, %r13d
	jmp	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	80(%r12), %rcx
	cmpl	$0, (%rcx,%r13,4)
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	56(%r12), %rax
	movl	(%rax,%r13,4), %esi
	movl	88(%r12), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_dma_unmap_single
	movq	80(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_kfree_skb
	movl	8(%r12), %eax
	jmp	LBB0_25
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_30
LBB0_15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_28
LBB0_26:
	movq	80(%r12), %rdi
	callq	_kfree
	jmp	LBB0_27
LBB0_19:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_27:
	movq	72(%r12), %rdi
	callq	_kfree
LBB0_28:
	movl	24(%r12), %ecx
	movl	28(%r12), %esi
	movq	64(%r12), %rdx
	movq	%r15, %rdi
	callq	_dma_free_coherent
LBB0_29:
	movl	12(%r12), %ecx
	movl	16(%r12), %esi
	movq	56(%r12), %rdx
	movq	%r15, %rdi
	callq	_dma_free_coherent
LBB0_30:
	negl	%ebx
	movl	52(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_31:
	movl	48(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_32:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_33:
	movq	40(%r12), %rdi
	callq	_phy_disconnect
LBB0_38:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.39:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	12(%r12), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_RSTART_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	24(%r12), %ebx
	movl	104(%r12), %edi
	callq	_ENETDMA_RSTART_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	108(%r12), %edi
	callq	_ENETDMA_SRAM2_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	104(%r12), %edi
	callq	_ENETDMA_SRAM2_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	108(%r12), %edi
	callq	_ENETDMA_SRAM3_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	104(%r12), %edi
	callq	_ENETDMA_SRAM3_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	108(%r12), %edi
	callq	_ENETDMA_SRAM4_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	104(%r12), %edi
	callq	_ENETDMA_SRAM4_REG
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	116(%r12), %esi
	movq	_ENET_RXMAXLEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movl	116(%r12), %esi
	movq	_ENET_TXMAXLEN_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movq	_BCMENET_DMA_MAXBURST@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_MAXBURST_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	(%r15), %ebx
	movl	104(%r12), %edi
	callq	_ENETDMA_MAXBURST_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movq	_BCMENET_TX_FIFO_TRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENET_TXWMARK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movslq	8(%r12), %rax
	imulq	$1431655766, %rax, %rbx         ## imm = 0x55555556
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$32, %rbx
	addl	%eax, %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_FLOWCL_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	8(%r12), %eax
	movl	108(%r12), %edi
	addl	%eax, %eax
	cltq
	imulq	$1431655766, %rax, %rbx         ## imm = 0x55555556
	movq	%rbx, %rax
	shrq	$63, %rax
	shrq	$32, %rbx
	addl	%eax, %ebx
	callq	_ENETDMA_FLOWCH_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	xorl	%eax, %eax
	callq	_wmb
	movq	_ENET_CTL_ENABLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENET_CTL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movq	_ENETDMA_CFG_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENETDMA_CFG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_dma_writel
	movq	_ENETDMA_CHANCFG_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_CHANCFG_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movq	_ENET_IR_MIB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ENET_IR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movl	(%rbx), %esi
	movq	_ENET_IRMASK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_enet_writel
	movq	_ENETDMA_IR_PKTDONE_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_IR_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	(%r15), %ebx
	movl	104(%r12), %edi
	callq	_ENETDMA_IR_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movq	%r12, %rdi
	addq	$112, %rdi
	callq	_napi_enable
	movl	(%r15), %ebx
	movl	108(%r12), %edi
	callq	_ENETDMA_IRMASK_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	movl	(%r15), %ebx
	movl	104(%r12), %edi
	callq	_ENETDMA_IRMASK_REG
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_enet_dma_writel
	cmpq	$0, 96(%r12)
	je	LBB0_36
## %bb.35:
	movq	40(%r12), %rdi
	callq	_phy_start
	jmp	LBB0_37
LBB0_36:
	movq	%r14, %rdi
	callq	_bcm_enet_adjust_link
LBB0_37:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_netif_start_queue
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.comm	_PHY_ID_FMT,8,3                 ## @PHY_ID_FMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1"

L_.str.1:                               ## @.str.1
	.asciz	"0"

	.comm	_bcm_enet_adjust_phy_link,4,2   ## @bcm_enet_adjust_phy_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
L_.str.2:                               ## @.str.2
	.asciz	"could not attach to PHY\n"

	.comm	_SUPPORTED_10baseT_Half,4,2     ## @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ## @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_Pause,4,2            ## @SUPPORTED_Pause
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
L_.str.3:                               ## @.str.3
	.asciz	"attached PHY at address %d [%s]\n"

	.comm	_ENET_IRMASK_REG,4,2            ## @ENET_IRMASK_REG
	.comm	_bcm_enet_isr_mac,4,2           ## @bcm_enet_isr_mac
	.comm	_bcm_enet_isr_dma,4,2           ## @bcm_enet_isr_dma
	.comm	_IRQF_SAMPLE_RANDOM,4,2         ## @IRQF_SAMPLE_RANDOM
	.comm	_IRQF_DISABLED,4,2              ## @IRQF_DISABLED
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"cannot allocate rx ring %u\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"cannot allocate tx ring\n"

L_.str.6:                               ## @.str.6
	.asciz	"cannot allocate rx skb queue\n"

	.comm	_ENETDMA_BUFALLOC_FORCE_MASK,4,2 ## @ENETDMA_BUFALLOC_FORCE_MASK
	.comm	_ENET_RXMAXLEN_REG,4,2          ## @ENET_RXMAXLEN_REG
	.comm	_ENET_TXMAXLEN_REG,4,2          ## @ENET_TXMAXLEN_REG
	.comm	_BCMENET_DMA_MAXBURST,4,2       ## @BCMENET_DMA_MAXBURST
	.comm	_BCMENET_TX_FIFO_TRESH,4,2      ## @BCMENET_TX_FIFO_TRESH
	.comm	_ENET_TXWMARK_REG,4,2           ## @ENET_TXWMARK_REG
	.comm	_ENET_CTL_ENABLE_MASK,4,2       ## @ENET_CTL_ENABLE_MASK
	.comm	_ENET_CTL_REG,4,2               ## @ENET_CTL_REG
	.comm	_ENETDMA_CFG_EN_MASK,4,2        ## @ENETDMA_CFG_EN_MASK
	.comm	_ENETDMA_CFG_REG,4,2            ## @ENETDMA_CFG_REG
	.comm	_ENETDMA_CHANCFG_EN_MASK,4,2    ## @ENETDMA_CHANCFG_EN_MASK
	.comm	_ENET_IR_MIB,4,2                ## @ENET_IR_MIB
	.comm	_ENET_IR_REG,4,2                ## @ENET_IR_REG
	.comm	_ENETDMA_IR_PKTDONE_MASK,4,2    ## @ENETDMA_IR_PKTDONE_MASK
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_bcm_enet_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_enet_open
_bcm_enet_open:                         ; @bcm_enet_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w23, w8, #3
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_netdev_priv
	mov	x20, x0
	ldr	x21, [x0, #216]
	ldr	x8, [x0, #96]
	cbz	x8, LBB0_9
; %bb.1:
Lloh8:
	adrp	x8, _PHY_ID_FMT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PHY_ID_FMT@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x9, [x20, #208]
Lloh13:
	adrp	x10, l_.str.1@PAGE
Lloh14:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x9, #0
	csel	x3, x10, x8, eq
	ldr	w4, [x20, #200]
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
Lloh15:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x2, _bcm_enet_adjust_phy_link@GOTPAGE
Lloh19:
	ldr	x2, [x2, _bcm_enet_adjust_phy_link@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_phy_connect
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	mov	x0, x22
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_34
LBB0_3:
Lloh22:
	adrp	x8, _SUPPORTED_10baseT_Half@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SUPPORTED_10baseT_Half@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _SUPPORTED_100baseT_Half@GOTPAGE
Lloh29:
	ldr	x10, [x10, _SUPPORTED_100baseT_Half@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh30:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w9, w8, w9
Lloh34:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x8]
Lloh37:
	adrp	x8, _SUPPORTED_Pause@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SUPPORTED_Pause@GOTPAGEOFF]
	orr	w9, w9, w10
	ldr	w10, [x8]
	orr	w9, w9, w10
Lloh39:
	adrp	x10, _SUPPORTED_MII@GOTPAGE
Lloh40:
	ldr	x10, [x10, _SUPPORTED_MII@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [x22]
	and	w9, w10, w9
	stp	w9, w9, [x22]
	ldr	x10, [x20, #192]
	cbz	x10, LBB0_7
; %bb.4:
	ldr	x10, [x20, #184]
	cbz	x10, LBB0_7
; %bb.5:
	ldr	x10, [x20, #176]
	cbz	x10, LBB0_7
; %bb.6:
	ldr	w8, [x8]
	orr	w8, w8, w9
	b	LBB0_8
LBB0_7:
	ldr	w8, [x8]
	bic	w8, w9, w8
LBB0_8:
	str	w8, [x22, #4]
	ldr	w2, [x22, #16]
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
Lloh42:
	adrp	x1, l_.str.3@PAGE
Lloh43:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	str	xzr, [x20, #168]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x20]
	str	x22, [x20, #40]
LBB0_9:
Lloh44:
	adrp	x25, _ENET_IRMASK_REG@GOTPAGE
Lloh45:
	ldr	x25, [x25, _ENET_IRMASK_REG@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	ldr	w0, [x20, #108]
	bl	_ENETDMA_IRMASK_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #104]
	bl	_ENETDMA_IRMASK_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x19]
Lloh46:
	adrp	x8, _bcm_enet_isr_mac@GOTPAGE
Lloh47:
	ldr	x8, [x8, _bcm_enet_isr_mac@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w3, [x19, #8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.10:
	ldr	w0, [x20, #48]
Lloh49:
	adrp	x23, _bcm_enet_isr_dma@GOTPAGE
Lloh50:
	ldr	x23, [x23, _bcm_enet_isr_dma@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh51:
	adrp	x8, _IRQF_SAMPLE_RANDOM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IRQF_SAMPLE_RANDOM@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x26, _IRQF_DISABLED@GOTPAGE
Lloh55:
	ldr	x26, [x26, _IRQF_DISABLED@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w2, w9, w8
	ldr	w3, [x19, #8]
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_32
; %bb.11:
	ldr	w0, [x20, #52]
	ldr	w1, [x23]
	ldr	w2, [x26]
	ldr	w3, [x19, #8]
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_31
; %bb.12:
	bl	_ENET_PML_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #0
	bl	_ENET_PMH_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #1
	bl	_ENET_PML_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #1
	bl	_ENET_PMH_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #2
	bl	_ENET_PML_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #2
	bl	_ENET_PMH_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #3
	bl	_ENET_PML_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	mov	w0, #3
	bl	_ENET_PMH_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_writel
	ldr	w1, [x19, #4]
Lloh56:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	bl	_memcpy
	sub	x1, x29, #80
	mov	x0, x19
	bl	_bcm_enet_set_mac_address
	ldr	w8, [x20, #8]
	lsl	w22, w8, #2
	add	x2, x20, #12
Lloh59:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh60:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x22
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_22
; %bb.13:
	mov	x23, x0
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	str	w22, [x20, #16]
	str	x23, [x20, #56]
	ldr	w8, [x20, #20]
	lsl	w22, w8, #2
	add	x2, x20, #24
	ldr	w3, [x26]
	mov	x0, x21
	mov	x1, x22
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_23
; %bb.14:
	mov	x23, x0
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	str	w22, [x20, #28]
	str	x23, [x20, #64]
	ldr	w8, [x20, #20]
	lsl	w0, w8, #3
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x20, #72]
	cbz	x0, LBB0_24
; %bb.15:
	ldr	w8, [x20, #20]
	str	w8, [x20, #32]
	add	x0, x20, #144
	stp	xzr, xzr, [x20, #152]
	bl	_spin_lock_init
	ldr	w8, [x20, #8]
	lsl	w0, w8, #3
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x20, #80]
	cbz	x0, LBB0_26
; %bb.16:
	stp	xzr, xzr, [x20, #120]
	str	xzr, [x20, #136]
Lloh61:
	adrp	x8, _ENETDMA_BUFALLOC_FORCE_MASK@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENETDMA_BUFALLOC_FORCE_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w22, [x8]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_BUFALLOC_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_enet_dma_writel
	mov	x0, x19
	bl	_bcm_enet_refill_rx
	cbz	x0, LBB0_36
; %bb.17:
Lloh64:
	adrp	x1, l_.str.6@PAGE
Lloh65:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh66:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh67:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh68:
	ldr	w22, [x8]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.18:
	mov	x23, #0
Lloh69:
	adrp	x25, _DMA_FROM_DEVICE@GOTPAGE
Lloh70:
	ldr	x25, [x25, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #80]
	ldr	w9, [x9, x23, lsl #2]
	cbz	w9, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x20, #56]
	lsl	x26, x23, #2
	ldr	w1, [x8, x26]
	ldr	w2, [x20, #88]
	ldr	w3, [x25]
	mov	x0, x21
	bl	_dma_unmap_single
	ldr	x8, [x20, #80]
	ldr	w0, [x8, x26]
	bl	_kfree_skb
	ldr	w8, [x20, #8]
	b	LBB0_19
LBB0_22:
	str	x22, [sp, #-16]!
Lloh71:
	adrp	x1, l_.str.4@PAGE
Lloh72:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	add	sp, sp, #16
Lloh73:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh75:
	ldr	w22, [x8]
	b	LBB0_30
LBB0_23:
Lloh76:
	adrp	x1, l_.str.5@PAGE
Lloh77:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh78:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh79:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh80:
	ldr	w22, [x8]
	b	LBB0_29
LBB0_24:
Lloh81:
	adrp	x1, l_.str.6@PAGE
Lloh82:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh83:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh85:
	ldr	w22, [x8]
	b	LBB0_28
LBB0_25:
	ldr	x0, [x20, #80]
	bl	_kfree
	b	LBB0_27
LBB0_26:
Lloh86:
	adrp	x1, l_.str.6@PAGE
Lloh87:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh88:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh89:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh90:
	ldr	w22, [x8]
LBB0_27:
	ldr	x0, [x20, #72]
	bl	_kfree
LBB0_28:
	ldr	x2, [x20, #64]
	ldp	w3, w1, [x20, #24]
	mov	x0, x21
	bl	_dma_free_coherent
LBB0_29:
	ldr	x2, [x20, #56]
	ldp	w3, w1, [x20, #12]
	mov	x0, x21
	bl	_dma_free_coherent
LBB0_30:
	neg	w22, w22
	ldr	w0, [x20, #52]
	mov	x1, x19
	bl	_free_irq
LBB0_31:
	ldr	w0, [x20, #48]
	mov	x1, x19
	bl	_free_irq
LBB0_32:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_33:
	ldr	x0, [x20, #40]
	bl	_phy_disconnect
LBB0_34:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh91:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh92:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh93:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.35:
	mov	x0, x22
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_36:
	ldr	w21, [x20, #12]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_RSTART_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w21, [x20, #24]
	ldr	w0, [x20, #104]
	bl	_ENETDMA_RSTART_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w0, [x20, #108]
	bl	_ENETDMA_SRAM2_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #104]
	bl	_ENETDMA_SRAM2_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #108]
	bl	_ENETDMA_SRAM3_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #104]
	bl	_ENETDMA_SRAM3_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #108]
	bl	_ENETDMA_SRAM4_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w0, [x20, #104]
	bl	_ENETDMA_SRAM4_REG
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_enet_dma_writel
	ldr	w1, [x20, #116]
Lloh94:
	adrp	x8, _ENET_RXMAXLEN_REG@GOTPAGE
Lloh95:
	ldr	x8, [x8, _ENET_RXMAXLEN_REG@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_writel
	ldr	w1, [x20, #116]
Lloh97:
	adrp	x8, _ENET_TXMAXLEN_REG@GOTPAGE
Lloh98:
	ldr	x8, [x8, _ENET_TXMAXLEN_REG@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_writel
Lloh100:
	adrp	x22, _BCMENET_DMA_MAXBURST@GOTPAGE
Lloh101:
	ldr	x22, [x22, _BCMENET_DMA_MAXBURST@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_MAXBURST_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w21, [x22]
	ldr	w0, [x20, #104]
	bl	_ENETDMA_MAXBURST_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
Lloh102:
	adrp	x8, _BCMENET_TX_FIFO_TRESH@GOTPAGE
Lloh103:
	ldr	x8, [x8, _BCMENET_TX_FIFO_TRESH@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
Lloh105:
	adrp	x8, _ENET_TXWMARK_REG@GOTPAGE
Lloh106:
	ldr	x8, [x8, _ENET_TXWMARK_REG@GOTPAGEOFF]
Lloh107:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_writel
	ldrsw	x8, [x20, #8]
	mov	w22, #21846
	movk	w22, #21845, lsl #16
	mul	x8, x8, x22
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w21, w8, w9
	ldr	w0, [x20, #108]
	bl	_ENETDMA_FLOWCL_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w8, [x20, #8]
	lsl	w8, w8, #1
	smull	x8, w8, w22
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w21, w8, w9
	ldr	w0, [x20, #108]
	bl	_ENETDMA_FLOWCH_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	bl	_wmb
Lloh108:
	adrp	x8, _ENET_CTL_ENABLE_MASK@GOTPAGE
Lloh109:
	ldr	x8, [x8, _ENET_CTL_ENABLE_MASK@GOTPAGEOFF]
Lloh110:
	ldr	w1, [x8]
Lloh111:
	adrp	x8, _ENET_CTL_REG@GOTPAGE
Lloh112:
	ldr	x8, [x8, _ENET_CTL_REG@GOTPAGEOFF]
Lloh113:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_writel
Lloh114:
	adrp	x8, _ENETDMA_CFG_EN_MASK@GOTPAGE
Lloh115:
	ldr	x8, [x8, _ENETDMA_CFG_EN_MASK@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
Lloh117:
	adrp	x8, _ENETDMA_CFG_REG@GOTPAGE
Lloh118:
	ldr	x8, [x8, _ENETDMA_CFG_REG@GOTPAGEOFF]
Lloh119:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_dma_writel
Lloh120:
	adrp	x8, _ENETDMA_CHANCFG_EN_MASK@GOTPAGE
Lloh121:
	ldr	x8, [x8, _ENETDMA_CHANCFG_EN_MASK@GOTPAGEOFF]
Lloh122:
	ldr	w21, [x8]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_CHANCFG_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
Lloh123:
	adrp	x21, _ENET_IR_MIB@GOTPAGE
Lloh124:
	ldr	x21, [x21, _ENET_IR_MIB@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh125:
	adrp	x8, _ENET_IR_REG@GOTPAGE
Lloh126:
	ldr	x8, [x8, _ENET_IR_REG@GOTPAGEOFF]
Lloh127:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_enet_writel
	ldr	w1, [x21]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_enet_writel
Lloh128:
	adrp	x22, _ENETDMA_IR_PKTDONE_MASK@GOTPAGE
Lloh129:
	ldr	x22, [x22, _ENETDMA_IR_PKTDONE_MASK@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_IR_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w21, [x22]
	ldr	w0, [x20, #104]
	bl	_ENETDMA_IR_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	add	x0, x20, #112
	bl	_napi_enable
	ldr	w21, [x22]
	ldr	w0, [x20, #108]
	bl	_ENETDMA_IRMASK_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	w21, [x22]
	ldr	w0, [x20, #104]
	bl	_ENETDMA_IRMASK_REG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_enet_dma_writel
	ldr	x8, [x20, #96]
	cbz	x8, LBB0_38
; %bb.37:
	ldr	x0, [x20, #40]
	bl	_phy_start
	b	LBB0_39
LBB0_38:
	mov	x0, x19
	bl	_bcm_enet_adjust_link
LBB0_39:
	mov	x0, x19
	bl	_netif_start_queue
	mov	w22, #0
	b	LBB0_34
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	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	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGot	Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.comm	_PHY_ID_FMT,8,3                 ; @PHY_ID_FMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1"

l_.str.1:                               ; @.str.1
	.asciz	"0"

	.comm	_bcm_enet_adjust_phy_link,4,2   ; @bcm_enet_adjust_phy_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
l_.str.2:                               ; @.str.2
	.asciz	"could not attach to PHY\n"

	.comm	_SUPPORTED_10baseT_Half,4,2     ; @SUPPORTED_10baseT_Half
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Half,4,2    ; @SUPPORTED_100baseT_Half
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_Pause,4,2            ; @SUPPORTED_Pause
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
l_.str.3:                               ; @.str.3
	.asciz	"attached PHY at address %d [%s]\n"

	.comm	_ENET_IRMASK_REG,4,2            ; @ENET_IRMASK_REG
	.comm	_bcm_enet_isr_mac,4,2           ; @bcm_enet_isr_mac
	.comm	_bcm_enet_isr_dma,4,2           ; @bcm_enet_isr_dma
	.comm	_IRQF_SAMPLE_RANDOM,4,2         ; @IRQF_SAMPLE_RANDOM
	.comm	_IRQF_DISABLED,4,2              ; @IRQF_DISABLED
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"cannot allocate rx ring %u\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"cannot allocate tx ring\n"

l_.str.6:                               ; @.str.6
	.asciz	"cannot allocate rx skb queue\n"

	.comm	_ENETDMA_BUFALLOC_FORCE_MASK,4,2 ; @ENETDMA_BUFALLOC_FORCE_MASK
	.comm	_ENET_RXMAXLEN_REG,4,2          ; @ENET_RXMAXLEN_REG
	.comm	_ENET_TXMAXLEN_REG,4,2          ; @ENET_TXMAXLEN_REG
	.comm	_BCMENET_DMA_MAXBURST,4,2       ; @BCMENET_DMA_MAXBURST
	.comm	_BCMENET_TX_FIFO_TRESH,4,2      ; @BCMENET_TX_FIFO_TRESH
	.comm	_ENET_TXWMARK_REG,4,2           ; @ENET_TXWMARK_REG
	.comm	_ENET_CTL_ENABLE_MASK,4,2       ; @ENET_CTL_ENABLE_MASK
	.comm	_ENET_CTL_REG,4,2               ; @ENET_CTL_REG
	.comm	_ENETDMA_CFG_EN_MASK,4,2        ; @ENETDMA_CFG_EN_MASK
	.comm	_ENETDMA_CFG_REG,4,2            ; @ENETDMA_CFG_REG
	.comm	_ENETDMA_CHANCFG_EN_MASK,4,2    ; @ENETDMA_CHANCFG_EN_MASK
	.comm	_ENET_IR_MIB,4,2                ; @ENET_IR_MIB
	.comm	_ENET_IR_REG,4,2                ; @ENET_IR_REG
	.comm	_ENETDMA_IR_PKTDONE_MASK,4,2    ; @ENETDMA_IR_PKTDONE_MASK
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_bcm_enet_open
.subsections_via_symbols
