	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_init
_mvpp2_init:                            ## @mvpp2_init
	.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	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_mv_mbus_dram_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_conf_mbus_windows
LBB0_2:
	movq	(%r15), %rax
	movq	_MVPP22@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_mvpp2_axi_init
	movq	(%r15), %rax
LBB0_4:
	movq	_MVPP21@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	8(%r15), %r12
	movq	_MVPP2_PHY_AN_CFG0_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %edi
	movq	_MVPP2_PHY_AN_STOP_SMI0_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	jmp	LBB0_7
LBB0_6:
	leaq	24(%r15), %r12
	movq	_MVPP22_SMI_MISC_CFG_REG@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	24(%r15), %rdi
	callq	_readl
	movq	_MVPP22_SMI_POLLING_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
LBB0_7:
	movq	(%rbx), %rsi
	addq	(%r12), %rsi
	callq	_writel
	movq	_MVPP2_MAX_THREADS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	%r14, %r12
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.9:
	movl	$0, (%rax)
	movq	_MVPP2_AGGR_TXQ_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_mvpp2_aggr_txq_init
	testl	%eax, %eax
	js	LBB0_21
## %bb.10:
	movl	$8, %r14d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r15), %rax
	leaq	(%rax,%r14), %rsi
	movl	%ebx, (%rax,%r14)
	movq	_MVPP2_AGGR_TXQ_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax,%r14)
	movq	%r12, %rdi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_mvpp2_aggr_txq_init
	addq	$8, %r14
	incq	%rbx
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_21
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_13:
	movq	(%r15), %rax
	movq	_MVPP21@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_mvpp2_rx_fifo_init
	jmp	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_mvpp22_rx_fifo_init
	movq	%r15, %rdi
	callq	_mvpp22_tx_fifo_init
LBB0_16:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_18
## %bb.17:
	movq	_MVPP2_EXT_GLOBAL_CTRL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
LBB0_18:
	movq	_MVPP2_TX_SNOOP_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_mvpp2_write
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_bm_init
	testl	%eax, %eax
	js	LBB0_21
## %bb.19:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mvpp2_prs_default_init
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	callq	_mvpp2_cls_init
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22,8,3                     ## @MVPP22
	.comm	_MVPP21,8,3                     ## @MVPP21
	.comm	_MVPP2_PHY_AN_CFG0_REG,8,3      ## @MVPP2_PHY_AN_CFG0_REG
	.comm	_MVPP2_PHY_AN_STOP_SMI0_MASK,4,2 ## @MVPP2_PHY_AN_STOP_SMI0_MASK
	.comm	_MVPP22_SMI_MISC_CFG_REG,8,3    ## @MVPP22_SMI_MISC_CFG_REG
	.comm	_MVPP22_SMI_POLLING_EN,4,2      ## @MVPP22_SMI_POLLING_EN
	.comm	_MVPP2_MAX_THREADS,4,2          ## @MVPP2_MAX_THREADS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MVPP2_AGGR_TXQ_SIZE,4,2        ## @MVPP2_AGGR_TXQ_SIZE
	.comm	_MVPP2_EXT_GLOBAL_CTRL_DEFAULT,4,2 ## @MVPP2_EXT_GLOBAL_CTRL_DEFAULT
	.comm	_MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG,8,3 ## @MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG
	.comm	_MVPP2_TX_SNOOP_REG,4,2         ## @MVPP2_TX_SNOOP_REG
	.no_dead_strip	_mvpp2_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_init
_mvpp2_init:                            ; @mvpp2_init
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_mv_mbus_dram_info
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_mvpp2_conf_mbus_windows
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MVPP22@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MVPP22@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mvpp2_axi_init
	ldr	x8, [x19]
LBB0_4:
Lloh3:
	adrp	x22, _MVPP21@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MVPP21@GOTPAGEOFF]
	ldr	x9, [x22]
	mov	x21, x19
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]!
Lloh5:
	adrp	x23, _MVPP2_PHY_AN_CFG0_REG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MVPP2_PHY_AN_CFG0_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh7:
	adrp	x8, _MVPP2_PHY_AN_STOP_SMI0_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MVPP2_PHY_AN_STOP_SMI0_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_7
LBB0_6:
	ldr	x8, [x21, #24]!
Lloh10:
	adrp	x23, _MVPP22_SMI_MISC_CFG_REG@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MVPP22_SMI_MISC_CFG_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
Lloh12:
	adrp	x8, _MVPP22_SMI_POLLING_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MVPP22_SMI_POLLING_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
Lloh15:
	adrp	x23, _MVPP2_MAX_THREADS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _MVPP2_MAX_THREADS@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.8:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x1, x0
	str	wzr, [x0]
Lloh20:
	adrp	x24, _MVPP2_AGGR_TXQ_SIZE@GOTPAGE
Lloh21:
	ldr	x24, [x24, _MVPP2_AGGR_TXQ_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x0, #4]
	mov	x0, x20
	mov	w2, #0
	mov	x3, x19
	bl	_mvpp2_aggr_txq_init
	tbnz	w0, #31, LBB0_22
; %bb.10:
	mov	x25, #0
	mov	w21, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x25
	str	w21, [x1, #8]!
	ldr	w8, [x24]
	str	w8, [x1, #4]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_mvpp2_aggr_txq_init
	add	x25, x25, #8
	add	x21, x21, #1
	tbz	w0, #31, LBB0_11
	b	LBB0_22
LBB0_13:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_14:
	ldr	x8, [x19]
	ldr	x9, [x22]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
	bl	_mvpp2_rx_fifo_init
	b	LBB0_17
LBB0_16:
	bl	_mvpp22_rx_fifo_init
	mov	x0, x19
	bl	_mvpp22_tx_fifo_init
LBB0_17:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
Lloh25:
	adrp	x8, _MVPP2_EXT_GLOBAL_CTRL_DEFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MVPP2_EXT_GLOBAL_CTRL_DEFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh28:
	adrp	x9, _MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
LBB0_19:
Lloh31:
	adrp	x8, _MVPP2_TX_SNOOP_REG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MVPP2_TX_SNOOP_REG@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_mvpp2_write
	mov	x0, x20
	mov	x1, x19
	bl	_mvpp2_bm_init
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_mvpp2_prs_default_init
	tbnz	w0, #31, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_mvpp2_cls_init
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22,8,3                     ; @MVPP22
	.comm	_MVPP21,8,3                     ; @MVPP21
	.comm	_MVPP2_PHY_AN_CFG0_REG,8,3      ; @MVPP2_PHY_AN_CFG0_REG
	.comm	_MVPP2_PHY_AN_STOP_SMI0_MASK,4,2 ; @MVPP2_PHY_AN_STOP_SMI0_MASK
	.comm	_MVPP22_SMI_MISC_CFG_REG,8,3    ; @MVPP22_SMI_MISC_CFG_REG
	.comm	_MVPP22_SMI_POLLING_EN,4,2      ; @MVPP22_SMI_POLLING_EN
	.comm	_MVPP2_MAX_THREADS,4,2          ; @MVPP2_MAX_THREADS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MVPP2_AGGR_TXQ_SIZE,4,2        ; @MVPP2_AGGR_TXQ_SIZE
	.comm	_MVPP2_EXT_GLOBAL_CTRL_DEFAULT,4,2 ; @MVPP2_EXT_GLOBAL_CTRL_DEFAULT
	.comm	_MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG,8,3 ; @MVPP2_MNG_EXTENDED_GLOBAL_CTRL_REG
	.comm	_MVPP2_TX_SNOOP_REG,4,2         ; @MVPP2_TX_SNOOP_REG
	.no_dead_strip	_mvpp2_init
.subsections_via_symbols
