	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_xlg_config
_mvpp2_xlg_config:                      ## @mvpp2_xlg_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r12
	movq	_MVPP22_XLG_CTRL0_REG@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	_MVPP22_XLG_CTRL4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_readl
	movq	_MVPP22_XLG_CTRL0_MAC_RESET_DIS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	%r14d, %edx
	movl	(%rbx), %ecx
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rbx
	movq	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	orl	%edx, %edi
	notl	%esi
	andl	%edx, %esi
	testl	%ecx, (%rbx)
	cmovnel	%edi, %esi
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rbx
	movq	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movl	%edi, %edx
	orl	%esi, %edx
	notl	%edi
	andl	%esi, %edi
	testl	%ecx, (%rbx)
	cmovnel	%edx, %edi
	movq	_MVPP22_XLG_CTRL4_MACMODSELECT_GMAC@GOTPCREL(%rip), %rdx
	movq	_MVPP22_XLG_CTRL4_EN_IDLE_CHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_MVPP22_XLG_CTRL4_FWD_FC@GOTPCREL(%rip), %rsi
	movq	_MVPP22_XLG_CTRL4_FWD_PFC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	%ecx, %ebx
	cmpl	%edi, %r14d
	jne	LBB0_1
## %bb.2:
	cmpl	%ebx, %eax
	jne	LBB0_3
LBB0_4:
	testl	%r14d, (%r15)
	je	LBB0_5
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_writel
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%ebx, %eax
	je	LBB0_4
LBB0_3:
	movq	_MVPP22_XLG_CTRL4_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	testl	%r14d, (%r15)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%r12), %rdi
	callq	_readl
	testl	%eax, (%r15)
	je	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ## @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL4_REG,8,3       ## @MVPP22_XLG_CTRL4_REG
	.comm	_MVPP22_XLG_CTRL0_MAC_RESET_DIS,4,2 ## @MVPP22_XLG_CTRL0_MAC_RESET_DIS
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN,4,2 ## @MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.comm	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN,4,2 ## @MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN
	.comm	_MVPP22_XLG_CTRL4_MACMODSELECT_GMAC,4,2 ## @MVPP22_XLG_CTRL4_MACMODSELECT_GMAC
	.comm	_MVPP22_XLG_CTRL4_EN_IDLE_CHECK,4,2 ## @MVPP22_XLG_CTRL4_EN_IDLE_CHECK
	.comm	_MVPP22_XLG_CTRL4_FWD_FC,4,2    ## @MVPP22_XLG_CTRL4_FWD_FC
	.comm	_MVPP22_XLG_CTRL4_FWD_PFC,4,2   ## @MVPP22_XLG_CTRL4_FWD_PFC
	.no_dead_strip	_mvpp2_xlg_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_xlg_config
_mvpp2_xlg_config:                      ; @mvpp2_xlg_config
	.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	x22, x2
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _MVPP22_XLG_CTRL0_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MVPP22_XLG_CTRL0_REG@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x25, _MVPP22_XLG_CTRL4_REG@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MVPP22_XLG_CTRL4_REG@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh4:
	adrp	x24, _MVPP22_XLG_CTRL0_MAC_RESET_DIS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MVPP22_XLG_CTRL0_MAC_RESET_DIS@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, w20
Lloh6:
	adrp	x9, _MLO_PAUSE_TX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLO_PAUSE_TX@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x11, _MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	orr	w12, w11, w8
	bic	w8, w8, w11
	tst	w9, w10
	csel	w8, w8, w12, eq
Lloh12:
	adrp	x9, _MLO_PAUSE_RX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x11, _MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w12, w11, w8
	bic	w8, w8, w11
	tst	w9, w10
	csel	w0, w8, w12, eq
Lloh18:
	adrp	x8, _MVPP22_XLG_CTRL4_MACMODSELECT_GMAC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MVPP22_XLG_CTRL4_MACMODSELECT_GMAC@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MVPP22_XLG_CTRL4_EN_IDLE_CHECK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MVPP22_XLG_CTRL4_EN_IDLE_CHECK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w21, w8
Lloh24:
	adrp	x9, _MVPP22_XLG_CTRL4_FWD_FC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MVPP22_XLG_CTRL4_FWD_FC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _MVPP22_XLG_CTRL4_FWD_PFC@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MVPP22_XLG_CTRL4_FWD_PFC@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w22, w9, w8
	cmp	w20, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
LBB0_2:
	cmp	w21, w22
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
LBB0_4:
	ldr	w8, [x24]
	tst	w8, w20
	b.ne	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
LBB0_6:
	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	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_XLG_CTRL0_REG,8,3       ; @MVPP22_XLG_CTRL0_REG
	.comm	_MVPP22_XLG_CTRL4_REG,8,3       ; @MVPP22_XLG_CTRL4_REG
	.comm	_MVPP22_XLG_CTRL0_MAC_RESET_DIS,4,2 ; @MVPP22_XLG_CTRL0_MAC_RESET_DIS
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN,4,2 ; @MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.comm	_MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN,4,2 ; @MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN
	.comm	_MVPP22_XLG_CTRL4_MACMODSELECT_GMAC,4,2 ; @MVPP22_XLG_CTRL4_MACMODSELECT_GMAC
	.comm	_MVPP22_XLG_CTRL4_EN_IDLE_CHECK,4,2 ; @MVPP22_XLG_CTRL4_EN_IDLE_CHECK
	.comm	_MVPP22_XLG_CTRL4_FWD_FC,4,2    ; @MVPP22_XLG_CTRL4_FWD_FC
	.comm	_MVPP22_XLG_CTRL4_FWD_PFC,4,2   ; @MVPP22_XLG_CTRL4_FWD_PFC
	.no_dead_strip	_mvpp2_xlg_config
.subsections_via_symbols
