	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_mac_config
_mvpp2_mac_config:                      ## @mvpp2_mac_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, %r14
	movl	%esi, %r12d
	movl	(%rdi), %edi
	callq	_to_net_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r15
	movq	%r15, %rdi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.18:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_2:
	movq	%r13, %rdi
	callq	_mvpp2_port_disable
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	_MVPP22@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.3:
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_mvpp22_gop_mask_irq
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	32(%r13), %edi
	callq	_phy_power_off
	movq	%r13, %rdi
	callq	_mvpp22_mode_reconfigure
LBB0_5:
	movq	(%r14), %rdi
	callq	_mvpp2_is_xlg
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_mvpp2_xlg_config
	jmp	LBB0_11
LBB0_7:
	movq	(%r14), %rdi
	callq	_phy_interface_mode_is_rgmii
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
LBB0_10:
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_mvpp2_gmac_config
LBB0_11:
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	_MVPP21@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	_MVPP2_F_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%r13)
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mvpp2_port_loopback_set
	movq	24(%r13), %rax
	movq	(%rax), %rax
LBB0_14:
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.15:
	cmpq	%r15, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_mvpp22_gop_unmask_irq
LBB0_17:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mvpp2_port_enable              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid mode on %s\n"

	.comm	_MVPP22,8,3                     ## @MVPP22
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP21,8,3                     ## @MVPP21
	.comm	_MVPP2_F_LOOPBACK,4,2           ## @MVPP2_F_LOOPBACK
	.no_dead_strip	_mvpp2_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_mac_config
_mvpp2_mac_config:                      ; @mvpp2_mac_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x22, x1
	ldr	w0, [x0]
	bl	_to_net_dev
	mov	x23, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x24, [x0]
	ldr	x21, [x20]
	mov	x0, x21
	bl	_mvpp2_is_xlg
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w2, [x23]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_3:
	mov	x0, x19
	bl	_mvpp2_port_disable
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh2:
	adrp	x23, _MVPP22@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MVPP22@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	ccmp	x24, x21, #4, eq
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_mvpp22_gop_mask_irq
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	w0, [x19, #32]
	bl	_phy_power_off
	mov	x0, x19
	bl	_mvpp22_mode_reconfigure
LBB0_5:
	ldr	x0, [x20]
	bl	_mvpp2_is_xlg
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mvpp2_xlg_config
	b	LBB0_11
LBB0_7:
	ldr	x0, [x20]
	bl	_phy_interface_mode_is_rgmii
	cbnz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x20]
	bl	_phy_interface_mode_is_8023z
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_mvpp2_gmac_config
LBB0_11:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _MVPP21@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MVPP21@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	w9, [x19, #16]
Lloh10:
	adrp	x10, _MVPP2_F_LOOPBACK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MVPP2_F_LOOPBACK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_mvpp2_port_loopback_set
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
LBB0_14:
	ldr	x9, [x23]
	cmp	x8, x9
	ccmp	x24, x21, #4, eq
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_mvpp22_gop_unmask_irq
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mvpp2_port_enable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid mode on %s\n"

	.comm	_MVPP22,8,3                     ; @MVPP22
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MVPP21,8,3                     ; @MVPP21
	.comm	_MVPP2_F_LOOPBACK,4,2           ; @MVPP2_F_LOOPBACK
	.no_dead_strip	_mvpp2_mac_config
.subsections_via_symbols
