	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function octeon_mgmt_open
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_octeon_mgmt_open:                      ## @octeon_mgmt_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_OCTEON_MGMT_TX_RING_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ring_size_to_bytes
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, %rax
	movl	16(%r15), %r12d
	movq	(%rax), %rdi
	callq	_ring_size_to_bytes
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 128(%r15)
	movq	$0, 144(%r15)
	movq	_OCTEON_MGMT_RX_RING_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ring_size_to_bytes
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, %rax
	movl	16(%r15), %r12d
	movq	(%rax), %rdi
	callq	_ring_size_to_bytes
	movl	(%r13), %ecx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, 4(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%r15)
	movq	$0, 120(%r15)
	movq	%r15, %rdi
	callq	_octeon_mgmt_reset_hw
	movq	_MIX_CTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	72(%r15), %rdi
	callq	_cvmx_read_csr
	movq	_OCTEON_CN5XXX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OCTEON_IS_MODEL
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_CVMX_AGL_GMX_INF_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
LBB0_4:
	movq	_OCTEON_CN56XX_PASS1_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OCTEON_IS_MODEL
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	_OCTEON_CN52XX_PASS1_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OCTEON_IS_MODEL
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_CVMX_AGL_GMX_DRV_CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_cvmx_read_csr
	cmpq	$0, 96(%r15)
	movl	$1, %esi
	cmovel	%eax, %esi
	movq	(%rbx), %rdi
	callq	_cvmx_write_csr
LBB0_7:
	movl	(%r15), %esi
	sarl	$3, %esi
	movq	_MIX_ORING1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	72(%r15), %rdi
	callq	_cvmx_write_csr
	movl	4(%r15), %esi
	sarl	$3, %esi
	movq	_MIX_IRING1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	72(%r15), %rdi
	callq	_cvmx_write_csr
	movl	16(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_octeon_mgmt_set_mac_address
	movl	12(%r14), %esi
	movq	%r14, %rdi
	callq	_octeon_mgmt_change_mtu
	movq	(%r12), %rdi
	addq	72(%r15), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
	movq	%r14, %rdi
	callq	_octeon_mgmt_init_phy
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	movl	16(%r15), %edi
	movq	96(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_OCTEON_MGMT_RX_RING_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_12:
	movq	_OCTEON_CN6XXX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OCTEON_IS_MODEL
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_linkmode_test_bit
	movl	%eax, %r12d
	movq	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %esi
	callq	_linkmode_test_bit
	xorl	%ebx, %ebx
	orl	%r12d, %eax
	sete	%bl
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movq	88(%r15), %rdi
	movl	%ebx, %esi
	callq	_cvmx_write_csr
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movq	88(%r15), %rdi
	movl	%eax, %esi
	callq	_cvmx_write_csr
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movl	$2048, %edi                     ## imm = 0x800
	callq	_ndelay
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movq	88(%r15), %rdi
	movl	%eax, %esi
	callq	_cvmx_write_csr
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movq	88(%r15), %rdi
	movl	%eax, %esi
	callq	_cvmx_write_csr
	movq	88(%r15), %rdi
	callq	_cvmx_read_csr
	movl	$8320, %edi                     ## imm = 0x2080
	callq	_ndelay
	movq	_CVMX_AGL_GMX_TX_IFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$174, %esi
	callq	_cvmx_write_csr
LBB0_15:
	movq	%r14, %rdi
	callq	_octeon_mgmt_rx_fill_ring
	movq	_AGL_GMX_RX_STATS_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_RX_STATS_PKTS_DRP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_RX_STATS_PKTS_BAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_TX_STATS_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_TX_STAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_AGL_GMX_TX_STAT1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_MIX_ISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	72(%r15), %rbx
	movq	%rbx, %rdi
	callq	_cvmx_read_csr
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cvmx_write_csr
	movq	80(%r15), %rdi
	movq	_octeon_mgmt_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %ecx
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_request_irq
	testq	%rax, %rax
	movq	_OCTEON_MGMT_RX_RING_SIZE@GOTPCREL(%rip), %r12
	je	LBB0_17
## %bb.16:
	movl	16(%r15), %edi
	movq	80(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_9:
	movq	%r15, %rdi
	callq	_octeon_mgmt_reset_hw
	movl	4(%r15), %r14d
	movl	16(%r15), %ebx
	movq	(%r12), %rdi
	callq	_ring_size_to_bytes
	movl	(%r13), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	24(%r15), %rdi
	callq	_kfree
LBB0_10:
	movl	(%r15), %r14d
	movl	16(%r15), %ebx
	movq	_OCTEON_MGMT_TX_RING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ring_size_to_bytes
	movl	(%r13), %ecx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	8(%r15), %rdi
	callq	_kfree
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_MIX_IRHWM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	72(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_MIX_ORHWM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	72(%r15), %rdi
	xorl	%esi, %esi
	callq	_cvmx_write_csr
	movq	_MIX_INTENA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	72(%r15), %rdi
	movl	$1, %esi
	callq	_cvmx_write_csr
	xorl	%esi, %esi
	cmpq	$0, 64(%r15)
	setne	%sil
	movq	_AGL_GMX_RX_FRM_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	56(%r15), %rdi
	callq	_cvmx_write_csr
	movq	%r15, %rdi
	callq	_octeon_mgmt_disable_link
	cmpq	$0, (%r14)
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	_octeon_mgmt_update_link
LBB0_19:
	movq	%r15, %rdi
	callq	_octeon_mgmt_enable_link
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	(%r14), %rdi
	callq	_phy_start_aneg
LBB0_21:
	movq	%r14, %rdi
	callq	_netif_wake_queue
	addq	$32, %r15
	movq	%r15, %rdi
	callq	_napi_enable
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_OCTEON_MGMT_TX_RING_SIZE,8,3   ## @OCTEON_MGMT_TX_RING_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_OCTEON_MGMT_RX_RING_SIZE,8,3   ## @OCTEON_MGMT_RX_RING_SIZE
	.comm	_MIX_CTL,8,3                    ## @MIX_CTL
	.comm	_OCTEON_CN5XXX,4,2              ## @OCTEON_CN5XXX
	.comm	_CVMX_AGL_GMX_INF_MODE,8,3      ## @CVMX_AGL_GMX_INF_MODE
	.comm	_OCTEON_CN56XX_PASS1_X,4,2      ## @OCTEON_CN56XX_PASS1_X
	.comm	_OCTEON_CN52XX_PASS1_X,4,2      ## @OCTEON_CN52XX_PASS1_X
	.comm	_CVMX_AGL_GMX_DRV_CTL,8,3       ## @CVMX_AGL_GMX_DRV_CTL
	.comm	_MIX_ORING1,8,3                 ## @MIX_ORING1
	.comm	_MIX_IRING1,8,3                 ## @MIX_IRING1
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot initialize PHY on MIX%d.\n"

	.comm	_OCTEON_CN6XXX,4,2              ## @OCTEON_CN6XXX
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_CVMX_AGL_GMX_TX_IFG,8,3        ## @CVMX_AGL_GMX_TX_IFG
	.comm	_AGL_GMX_RX_STATS_CTL,8,3       ## @AGL_GMX_RX_STATS_CTL
	.comm	_AGL_GMX_RX_STATS_PKTS_DRP,8,3  ## @AGL_GMX_RX_STATS_PKTS_DRP
	.comm	_AGL_GMX_RX_STATS_PKTS_BAD,8,3  ## @AGL_GMX_RX_STATS_PKTS_BAD
	.comm	_AGL_GMX_TX_STATS_CTL,8,3       ## @AGL_GMX_TX_STATS_CTL
	.comm	_AGL_GMX_TX_STAT0,8,3           ## @AGL_GMX_TX_STAT0
	.comm	_AGL_GMX_TX_STAT1,8,3           ## @AGL_GMX_TX_STAT1
	.comm	_MIX_ISR,8,3                    ## @MIX_ISR
	.comm	_octeon_mgmt_interrupt,4,2      ## @octeon_mgmt_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"request_irq(%d) failed.\n"

	.comm	_MIX_IRHWM,8,3                  ## @MIX_IRHWM
	.comm	_MIX_ORHWM,8,3                  ## @MIX_ORHWM
	.comm	_MIX_INTENA,8,3                 ## @MIX_INTENA
	.comm	_AGL_GMX_RX_FRM_CTL,8,3         ## @AGL_GMX_RX_FRM_CTL
	.comm	_NS_PER_PHY_CLK,4,2             ## @NS_PER_PHY_CLK
	.no_dead_strip	_octeon_mgmt_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_open
_octeon_mgmt_open:                      ; @octeon_mgmt_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x23, _OCTEON_MGMT_TX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OCTEON_MGMT_TX_RING_SIZE@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ring_size_to_bytes
Lloh2:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	w22, [x19, #16]
	ldr	x0, [x23]
	bl	_ring_size_to_bytes
	mov	x2, x0
Lloh4:
	adrp	x24, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_dma_map_single
	str	w0, [x19]
	stp	xzr, xzr, [x19, #136]
	str	xzr, [x19, #128]
Lloh6:
	adrp	x25, _OCTEON_MGMT_RX_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _OCTEON_MGMT_RX_RING_SIZE@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ring_size_to_bytes
	ldr	w1, [x26]
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	ldr	w22, [x19, #16]
	ldr	x0, [x25]
	bl	_ring_size_to_bytes
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x22
	mov	x1, x21
	bl	_dma_map_single
	str	w0, [x19, #4]
	stp	xzr, xzr, [x19, #112]
	str	xzr, [x19, #104]
	mov	x0, x19
	bl	_octeon_mgmt_reset_hw
	ldr	x8, [x19, #72]
Lloh8:
	adrp	x21, _MIX_CTL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MIX_CTL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_cvmx_read_csr
Lloh10:
	adrp	x8, _OCTEON_CN5XXX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OCTEON_CN5XXX@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_OCTEON_IS_MODEL
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _CVMX_AGL_GMX_INF_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CVMX_AGL_GMX_INF_MODE@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	mov	w1, #1
	bl	_cvmx_write_csr
LBB0_4:
Lloh16:
	adrp	x8, _OCTEON_CN56XX_PASS1_X@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OCTEON_CN56XX_PASS1_X@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_OCTEON_IS_MODEL
	cbnz	x0, LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _OCTEON_CN52XX_PASS1_X@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OCTEON_CN52XX_PASS1_X@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_OCTEON_IS_MODEL
	cbz	x0, LBB0_7
LBB0_6:
Lloh22:
	adrp	x22, _CVMX_AGL_GMX_DRV_CTL@GOTPAGE
Lloh23:
	ldr	x22, [x22, _CVMX_AGL_GMX_DRV_CTL@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_cvmx_read_csr
	ldr	x8, [x19, #96]
	cmp	x8, #0
	csinc	w1, w0, wzr, eq
	ldr	x0, [x22]
	bl	_cvmx_write_csr
LBB0_7:
	ldr	w8, [x19]
	asr	w1, w8, #3
	ldr	x8, [x19, #72]
Lloh24:
	adrp	x9, _MIX_ORING1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MIX_ORING1@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_cvmx_write_csr
	ldr	w8, [x19, #4]
	asr	w1, w8, #3
	ldr	x8, [x19, #72]
Lloh27:
	adrp	x9, _MIX_IRING1@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MIX_IRING1@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_cvmx_write_csr
	ldr	w1, [x20, #16]
Lloh30:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	bl	_memcpy
	add	x1, sp, #8
	mov	x0, x20
	bl	_octeon_mgmt_set_mac_address
	ldr	w1, [x20, #12]
	mov	x0, x20
	bl	_octeon_mgmt_change_mtu
	ldr	x8, [x19, #72]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	w1, #1
	bl	_cvmx_write_csr
	mov	x0, x20
	bl	_octeon_mgmt_init_phy
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #96]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_9:
Lloh35:
	adrp	x8, _OCTEON_CN6XXX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OCTEON_CN6XXX@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_OCTEON_IS_MODEL
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.11:
Lloh38:
	adrp	x9, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_linkmode_test_bit
	mov	x21, x0
Lloh41:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Full_BIT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_linkmode_test_bit
	orr	w8, w0, w21
	cmp	w8, #0
	cset	w21, eq
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	ldr	x0, [x19, #88]
	mov	x1, x21
	bl	_cvmx_write_csr
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	mov	x1, x0
	ldr	x0, [x19, #88]
	bl	_cvmx_write_csr
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	mov	w0, #2048
	bl	_ndelay
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	mov	x1, x0
	ldr	x0, [x19, #88]
	bl	_cvmx_write_csr
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	mov	x1, x0
	ldr	x0, [x19, #88]
	bl	_cvmx_write_csr
	ldr	x0, [x19, #88]
	bl	_cvmx_read_csr
	mov	w0, #8320
	bl	_ndelay
Lloh44:
	adrp	x8, _CVMX_AGL_GMX_TX_IFG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CVMX_AGL_GMX_TX_IFG@GOTPAGEOFF]
Lloh46:
	ldr	x0, [x8]
	mov	w1, #174
	bl	_cvmx_write_csr
LBB0_12:
	mov	x0, x20
	bl	_octeon_mgmt_rx_fill_ring
	ldr	x8, [x19, #56]
Lloh47:
	adrp	x9, _AGL_GMX_RX_STATS_CTL@GOTPAGE
Lloh48:
	ldr	x9, [x9, _AGL_GMX_RX_STATS_CTL@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #1
	bl	_cvmx_write_csr
	ldr	x8, [x19, #56]
Lloh50:
	adrp	x9, _AGL_GMX_RX_STATS_PKTS_DRP@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AGL_GMX_RX_STATS_PKTS_DRP@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #56]
Lloh53:
	adrp	x9, _AGL_GMX_RX_STATS_PKTS_BAD@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AGL_GMX_RX_STATS_PKTS_BAD@GOTPAGEOFF]
Lloh55:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #56]
Lloh56:
	adrp	x9, _AGL_GMX_TX_STATS_CTL@GOTPAGE
Lloh57:
	ldr	x9, [x9, _AGL_GMX_TX_STATS_CTL@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #1
	bl	_cvmx_write_csr
	ldr	x8, [x19, #56]
Lloh59:
	adrp	x9, _AGL_GMX_TX_STAT0@GOTPAGE
Lloh60:
	ldr	x9, [x9, _AGL_GMX_TX_STAT0@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #56]
Lloh62:
	adrp	x9, _AGL_GMX_TX_STAT1@GOTPAGE
Lloh63:
	ldr	x9, [x9, _AGL_GMX_TX_STAT1@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #72]
Lloh65:
	adrp	x9, _MIX_ISR@GOTPAGE
Lloh66:
	ldr	x9, [x9, _MIX_ISR@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	add	x21, x9, x8
	mov	x0, x21
	bl	_cvmx_read_csr
	mov	x1, x0
	mov	x0, x21
	bl	_cvmx_write_csr
	ldr	x0, [x19, #80]
Lloh68:
	adrp	x8, _octeon_mgmt_interrupt@GOTPAGE
Lloh69:
	ldr	x8, [x8, _octeon_mgmt_interrupt@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	cbz	x0, LBB0_18
; %bb.13:
	ldr	w0, [x19, #16]
	ldr	x2, [x19, #80]
Lloh71:
	adrp	x1, l_.str.1@PAGE
Lloh72:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_14:
	bl	_dev_err
	mov	x0, x19
	bl	_octeon_mgmt_reset_hw
	ldr	w20, [x19, #16]
	ldr	w21, [x19, #4]
	ldr	x0, [x25]
	bl	_ring_size_to_bytes
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_single
	ldr	x0, [x19, #24]
	bl	_kfree
LBB0_15:
	ldr	w20, [x19, #16]
	ldr	w21, [x19]
	ldr	x0, [x23]
	bl	_ring_size_to_bytes
	mov	x2, x0
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_unmap_single
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_16:
Lloh73:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh74:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	add	sp, sp, #96
	ret
LBB0_18:
	ldr	x8, [x19, #72]
Lloh76:
	adrp	x9, _MIX_IRHWM@GOTPAGE
Lloh77:
	ldr	x9, [x9, _MIX_IRHWM@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #72]
Lloh79:
	adrp	x9, _MIX_ORHWM@GOTPAGE
Lloh80:
	ldr	x9, [x9, _MIX_ORHWM@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_cvmx_write_csr
	ldr	x8, [x19, #72]
Lloh82:
	adrp	x9, _MIX_INTENA@GOTPAGE
Lloh83:
	ldr	x9, [x9, _MIX_INTENA@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #1
	bl	_cvmx_write_csr
	ldp	x9, x8, [x19, #56]
	cmp	x8, #0
	cset	w1, ne
Lloh85:
	adrp	x8, _AGL_GMX_RX_FRM_CTL@GOTPAGE
Lloh86:
	ldr	x8, [x8, _AGL_GMX_RX_FRM_CTL@GOTPAGEOFF]
Lloh87:
	ldr	x8, [x8]
	add	x0, x8, x9
	bl	_cvmx_write_csr
	mov	x0, x19
	bl	_octeon_mgmt_disable_link
	ldr	x8, [x20]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_octeon_mgmt_update_link
LBB0_20:
	mov	x0, x19
	bl	_octeon_mgmt_enable_link
	stp	xzr, xzr, [x19, #40]
	ldr	x8, [x20]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x0, [x20]
	bl	_phy_start_aneg
LBB0_22:
	mov	x0, x20
	bl	_netif_wake_queue
	add	x0, x19, #32
	bl	_napi_enable
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_OCTEON_MGMT_TX_RING_SIZE,8,3   ; @OCTEON_MGMT_TX_RING_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_OCTEON_MGMT_RX_RING_SIZE,8,3   ; @OCTEON_MGMT_RX_RING_SIZE
	.comm	_MIX_CTL,8,3                    ; @MIX_CTL
	.comm	_OCTEON_CN5XXX,4,2              ; @OCTEON_CN5XXX
	.comm	_CVMX_AGL_GMX_INF_MODE,8,3      ; @CVMX_AGL_GMX_INF_MODE
	.comm	_OCTEON_CN56XX_PASS1_X,4,2      ; @OCTEON_CN56XX_PASS1_X
	.comm	_OCTEON_CN52XX_PASS1_X,4,2      ; @OCTEON_CN52XX_PASS1_X
	.comm	_CVMX_AGL_GMX_DRV_CTL,8,3       ; @CVMX_AGL_GMX_DRV_CTL
	.comm	_MIX_ORING1,8,3                 ; @MIX_ORING1
	.comm	_MIX_IRING1,8,3                 ; @MIX_IRING1
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot initialize PHY on MIX%d.\n"

	.comm	_OCTEON_CN6XXX,4,2              ; @OCTEON_CN6XXX
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Full_BIT
	.comm	_CVMX_AGL_GMX_TX_IFG,8,3        ; @CVMX_AGL_GMX_TX_IFG
	.comm	_AGL_GMX_RX_STATS_CTL,8,3       ; @AGL_GMX_RX_STATS_CTL
	.comm	_AGL_GMX_RX_STATS_PKTS_DRP,8,3  ; @AGL_GMX_RX_STATS_PKTS_DRP
	.comm	_AGL_GMX_RX_STATS_PKTS_BAD,8,3  ; @AGL_GMX_RX_STATS_PKTS_BAD
	.comm	_AGL_GMX_TX_STATS_CTL,8,3       ; @AGL_GMX_TX_STATS_CTL
	.comm	_AGL_GMX_TX_STAT0,8,3           ; @AGL_GMX_TX_STAT0
	.comm	_AGL_GMX_TX_STAT1,8,3           ; @AGL_GMX_TX_STAT1
	.comm	_MIX_ISR,8,3                    ; @MIX_ISR
	.comm	_octeon_mgmt_interrupt,4,2      ; @octeon_mgmt_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"request_irq(%d) failed.\n"

	.comm	_MIX_IRHWM,8,3                  ; @MIX_IRHWM
	.comm	_MIX_ORHWM,8,3                  ; @MIX_ORHWM
	.comm	_MIX_INTENA,8,3                 ; @MIX_INTENA
	.comm	_AGL_GMX_RX_FRM_CTL,8,3         ; @AGL_GMX_RX_FRM_CTL
	.comm	_NS_PER_PHY_CLK,4,2             ; @NS_PER_PHY_CLK
	.no_dead_strip	_octeon_mgmt_open
.subsections_via_symbols
