	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_mac_port_setup
_mt7530_mac_port_setup:                 ## @mt7530_mac_port_setup
	.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	%rdi, %r14
	movq	_MHWSTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt753x_reg_read
	movq	_P6_INTF_DIS@GOTPCREL(%rip), %rsi
	movq	_P5_INTF_MODE_RGMII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rsi), %r12d
	orl	%edx, %r12d
	movq	_P5_INTF_DIS_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %r12d
	notl	%r12d
	andl	%eax, %r12d
	movq	_P5_INTF_SEL_GMAC5@GOTPCREL(%rip), %r13
	orl	(%r13), %r12d
	cmpl	$0, 72(%r14)
	je	LBB0_7
## %bb.1:
	movq	_IPG_96BIT_WITH_SHORT_IPG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IPG_CFG_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_MAC_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MAC_TX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_MAC_RX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_BKOFF_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_BACKPR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	cmpq	$0, 64(%r14)
	je	LBB0_4
## %bb.2:
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movq	_FORCE_LINK@GOTPCREL(%rip), %rdi
	movq	_FORCE_RX_FC@GOTPCREL(%rip), %r9
	movq	_FORCE_TX_FC@GOTPCREL(%rip), %r8
	movl	40(%r14), %ebx
	movq	_FORCE_SPD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	(%rax), %r15d
	orl	(%rdi), %r15d
	orl	(%r9), %r15d
	orl	(%r8), %r15d
	orl	%ebx, %r15d
	cmpq	$0, 56(%r14)
	je	LBB0_4
## %bb.3:
	movq	_FORCE_DPX@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_4:
	movl	44(%r14), %edi
	leal	-130(%rdi), %eax
	cmpl	$2, %eax
	jb	LBB0_9
## %bb.5:
	cmpl	$129, %edi
	jne	LBB0_8
## %bb.6:
	orl	%edx, %r12d
	jmp	LBB0_9
LBB0_7:
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_24:
	orl	%ecx, %r12d
	cmpl	$0, 24(%r14)
	jne	LBB0_15
LBB0_25:
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_P6_INTF_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_8:
	movl	32(%r14), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_phy_modes
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_P5_INTF_DIS_S@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_9:
	movl	48(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:
	cmpl	$0, 24(%r14)
	je	LBB0_25
LBB0_15:
	movq	_IPG_96BIT_WITH_SHORT_IPG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IPG_CFG_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movq	_MAC_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MAC_TX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_MAC_RX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BKOFF_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_BACKPR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	cmpq	$0, 16(%r14)
	je	LBB0_18
## %bb.16:
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movq	_FORCE_LINK@GOTPCREL(%rip), %rdx
	movq	_FORCE_RX_FC@GOTPCREL(%rip), %rsi
	movq	_FORCE_TX_FC@GOTPCREL(%rip), %r8
	movl	(%r14), %edi
	movq	_FORCE_SPD_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	(%rax), %ebx
	orl	(%rdx), %ebx
	orl	(%rsi), %ebx
	orl	(%r8), %ebx
	orl	%edi, %ebx
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.17:
	movq	_FORCE_DPX@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_18:
	movl	4(%r14), %edi
	cmpl	$128, %edi
	je	LBB0_21
## %bb.19:
	cmpl	$129, %edi
	jne	LBB0_23
## %bb.20:
	movl	$1, %edi
	jmp	LBB0_22
LBB0_10:
	movl	-44(%rbp), %eax
	testl	$-5, %eax
	je	LBB0_12
## %bb.11:
	movl	32(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	cmpl	$0, 24(%r14)
	jne	LBB0_15
	jmp	LBB0_25
LBB0_21:
	xorl	%edi, %edi
LBB0_22:
	callq	_BIT
	movl	%eax, %r13d
	jmp	LBB0_26
LBB0_23:
	movl	32(%r14), %ebx
	callq	_phy_modes
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_FORCE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_P6_INTF_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_26:
	movq	_MHWSTRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_mt753x_reg_write
	movq	_P6ECR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_mt753x_reg_write
	movl	$5, %edi
	callq	_PMCR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_mt753x_reg_write
	movl	$6, %edi
	callq	_PMCR
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mt753x_reg_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	(%r13), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	movq	_P5_PHY0_SEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_24
## %bb.13:
	notl	%ecx
	andl	%ecx, %r12d
	cmpl	$0, 24(%r14)
	jne	LBB0_15
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MHWSTRAP,4,2                   ## @MHWSTRAP
	.comm	_P6_INTF_DIS,4,2                ## @P6_INTF_DIS
	.comm	_P5_INTF_MODE_RGMII,4,2         ## @P5_INTF_MODE_RGMII
	.comm	_P5_INTF_DIS_S,4,2              ## @P5_INTF_DIS_S
	.comm	_P5_INTF_SEL_GMAC5,4,2          ## @P5_INTF_SEL_GMAC5
	.comm	_FORCE_MODE,4,2                 ## @FORCE_MODE
	.comm	_IPG_96BIT_WITH_SHORT_IPG,4,2   ## @IPG_96BIT_WITH_SHORT_IPG
	.comm	_IPG_CFG_S,4,2                  ## @IPG_CFG_S
	.comm	_MAC_MODE,4,2                   ## @MAC_MODE
	.comm	_MAC_TX_EN,4,2                  ## @MAC_TX_EN
	.comm	_MAC_RX_EN,4,2                  ## @MAC_RX_EN
	.comm	_BKOFF_EN,4,2                   ## @BKOFF_EN
	.comm	_BACKPR_EN,4,2                  ## @BACKPR_EN
	.comm	_FORCE_LINK,4,2                 ## @FORCE_LINK
	.comm	_FORCE_RX_FC,4,2                ## @FORCE_RX_FC
	.comm	_FORCE_TX_FC,4,2                ## @FORCE_TX_FC
	.comm	_FORCE_SPD_S,4,2                ## @FORCE_SPD_S
	.comm	_FORCE_DPX,4,2                  ## @FORCE_DPX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is not supported by port5\n"

L_.str.1:                               ## @.str.1
	.asciz	"phy-address"

L_.str.2:                               ## @.str.2
	.asciz	"Only PHY 0/4 can be connected to Port 5\n"

	.comm	_P5_PHY0_SEL,4,2                ## @P5_PHY0_SEL
L_.str.3:                               ## @.str.3
	.asciz	"%s is not supported by port6\n"

	.comm	_P6ECR,4,2                      ## @P6ECR
	.no_dead_strip	_mt7530_mac_port_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_mac_port_setup
_mt7530_mac_port_setup:                 ; @mt7530_mac_port_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _MHWSTRAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MHWSTRAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt753x_reg_read
Lloh3:
	adrp	x8, _P6_INTF_DIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P6_INTF_DIS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _P5_INTF_MODE_RGMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _P5_INTF_MODE_RGMII@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w10, w8, w9
Lloh9:
	adrp	x9, _P5_INTF_DIS_S@GOTPAGE
Lloh10:
	ldr	x9, [x9, _P5_INTF_DIS_S@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w10, w10, w9
Lloh12:
	adrp	x11, _P5_INTF_SEL_GMAC5@GOTPAGE
Lloh13:
	ldr	x11, [x11, _P5_INTF_SEL_GMAC5@GOTPAGEOFF]
	bic	w10, w0, w10
Lloh14:
	ldr	w11, [x11]
	orr	w20, w10, w11
	ldr	w10, [x19, #72]
Lloh15:
	adrp	x23, _IPG_96BIT_WITH_SHORT_IPG@GOTPAGE
Lloh16:
	ldr	x23, [x23, _IPG_96BIT_WITH_SHORT_IPG@GOTPAGEOFF]
Lloh17:
	adrp	x26, _IPG_CFG_S@GOTPAGE
Lloh18:
	ldr	x26, [x26, _IPG_CFG_S@GOTPAGEOFF]
Lloh19:
	adrp	x22, _MAC_MODE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _MAC_MODE@GOTPAGEOFF]
Lloh21:
	adrp	x25, _MAC_TX_EN@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MAC_TX_EN@GOTPAGEOFF]
Lloh23:
	adrp	x24, _MAC_RX_EN@GOTPAGE
Lloh24:
	ldr	x24, [x24, _MAC_RX_EN@GOTPAGEOFF]
Lloh25:
	adrp	x28, _BKOFF_EN@GOTPAGE
Lloh26:
	ldr	x28, [x28, _BKOFF_EN@GOTPAGEOFF]
Lloh27:
	adrp	x27, _BACKPR_EN@GOTPAGE
Lloh28:
	ldr	x27, [x27, _BACKPR_EN@GOTPAGEOFF]
	cbz	w10, LBB0_7
; %bb.1:
	ldr	w9, [x23]
	ldr	w10, [x26]
	lsl	w9, w9, w10
	ldr	w10, [x22]
	orr	w9, w9, w10
	ldr	w10, [x25]
	orr	w9, w9, w10
	ldr	w10, [x24]
	orr	w9, w9, w10
	ldr	w10, [x28]
	orr	w9, w9, w10
	ldr	w10, [x27]
	orr	w21, w9, w10
	ldr	x9, [x19, #64]
	cbz	x9, LBB0_4
; %bb.2:
Lloh29:
	adrp	x9, _FORCE_MODE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FORCE_MODE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _FORCE_LINK@GOTPAGE
Lloh33:
	ldr	x10, [x10, _FORCE_LINK@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
Lloh35:
	adrp	x11, _FORCE_RX_FC@GOTPAGE
Lloh36:
	ldr	x11, [x11, _FORCE_RX_FC@GOTPAGEOFF]
Lloh37:
	ldr	w11, [x11]
Lloh38:
	adrp	x12, _FORCE_TX_FC@GOTPAGE
Lloh39:
	ldr	x12, [x12, _FORCE_TX_FC@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	ldr	w13, [x19, #40]
Lloh41:
	adrp	x14, _FORCE_SPD_S@GOTPAGE
Lloh42:
	ldr	x14, [x14, _FORCE_SPD_S@GOTPAGEOFF]
Lloh43:
	ldr	w14, [x14]
	lsl	w13, w13, w14
	orr	w9, w9, w21
	orr	w9, w9, w10
	orr	w9, w9, w11
	orr	w9, w9, w12
	orr	w21, w9, w13
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_4
; %bb.3:
Lloh44:
	adrp	x9, _FORCE_DPX@GOTPAGE
Lloh45:
	ldr	x9, [x9, _FORCE_DPX@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w21, w9, w21
LBB0_4:
	ldr	w0, [x19, #44]
	sub	w9, w0, #130
	cmp	w9, #2
	b.lo	LBB0_9
; %bb.5:
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.6:
	orr	w20, w20, w8
	b	LBB0_9
LBB0_7:
Lloh47:
	adrp	x8, _FORCE_MODE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FORCE_MODE@GOTPAGEOFF]
Lloh49:
	ldr	w21, [x8]
	orr	w20, w20, w9
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_13
	b	LBB0_22
LBB0_8:
	ldr	w21, [x19, #32]
	bl	_phy_modes
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh50:
	adrp	x1, l_.str@PAGE
Lloh51:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
Lloh52:
	adrp	x8, _FORCE_MODE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _FORCE_MODE@GOTPAGEOFF]
Lloh54:
	ldr	w21, [x8]
Lloh55:
	adrp	x8, _P5_INTF_DIS_S@GOTPAGE
Lloh56:
	ldr	x8, [x8, _P5_INTF_DIS_S@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_9:
	ldr	w0, [x19, #48]
Lloh58:
	adrp	x1, l_.str.1@PAGE
Lloh59:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	x0, LBB0_12
; %bb.10:
	ldr	w8, [sp, #12]
	tst	w8, #0xfffffffb
	b.eq	LBB0_24
; %bb.11:
	ldr	w0, [x19, #32]
Lloh60:
	adrp	x1, l_.str.2@PAGE
Lloh61:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
LBB0_12:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_22
LBB0_13:
	ldr	w8, [x23]
	ldr	w9, [x26]
	lsl	w8, w8, w9
	ldr	w9, [x22]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [x28]
	orr	w8, w8, w9
	ldr	w9, [x27]
	orr	w22, w8, w9
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.14:
Lloh62:
	adrp	x8, _FORCE_MODE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _FORCE_MODE@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
Lloh65:
	adrp	x9, _FORCE_LINK@GOTPAGE
Lloh66:
	ldr	x9, [x9, _FORCE_LINK@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
Lloh68:
	adrp	x10, _FORCE_RX_FC@GOTPAGE
Lloh69:
	ldr	x10, [x10, _FORCE_RX_FC@GOTPAGEOFF]
Lloh70:
	ldr	w10, [x10]
Lloh71:
	adrp	x11, _FORCE_TX_FC@GOTPAGE
Lloh72:
	ldr	x11, [x11, _FORCE_TX_FC@GOTPAGEOFF]
Lloh73:
	ldr	w11, [x11]
	ldr	w12, [x19]
Lloh74:
	adrp	x13, _FORCE_SPD_S@GOTPAGE
Lloh75:
	ldr	x13, [x13, _FORCE_SPD_S@GOTPAGEOFF]
Lloh76:
	ldr	w13, [x13]
	lsl	w12, w12, w13
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w22, w8, w12
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_16
; %bb.15:
Lloh77:
	adrp	x8, _FORCE_DPX@GOTPAGE
Lloh78:
	ldr	x8, [x8, _FORCE_DPX@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_16:
	ldr	w0, [x19, #4]
	cmp	w0, #128
	b.eq	LBB0_19
; %bb.17:
	cmp	w0, #129
	b.ne	LBB0_21
; %bb.18:
	mov	w0, #1
	b	LBB0_20
LBB0_19:
	mov	w0, #0
LBB0_20:
	bl	_BIT
	mov	x23, x0
	b	LBB0_23
LBB0_21:
	ldr	w22, [x19, #32]
	bl	_phy_modes
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh80:
	adrp	x1, l_.str.3@PAGE
Lloh81:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_info
LBB0_22:
	mov	w23, #0
Lloh82:
	adrp	x8, _FORCE_MODE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _FORCE_MODE@GOTPAGEOFF]
Lloh84:
	ldr	w22, [x8]
Lloh85:
	adrp	x8, _P6_INTF_DIS@GOTPAGE
Lloh86:
	ldr	x8, [x8, _P6_INTF_DIS@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_23:
Lloh88:
	adrp	x8, _MHWSTRAP@GOTPAGE
Lloh89:
	ldr	x8, [x8, _MHWSTRAP@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_mt753x_reg_write
Lloh91:
	adrp	x8, _P6ECR@GOTPAGE
Lloh92:
	ldr	x8, [x8, _P6ECR@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_mt753x_reg_write
	mov	w0, #5
	bl	_PMCR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mt753x_reg_write
	mov	w0, #6
	bl	_PMCR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	bl	_mt753x_reg_write
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_24:
Lloh94:
	adrp	x9, _P5_INTF_SEL_GMAC5@GOTPAGE
Lloh95:
	ldr	x9, [x9, _P5_INTF_SEL_GMAC5@GOTPAGEOFF]
Lloh96:
	ldr	w9, [x9]
Lloh97:
	adrp	x10, _P5_PHY0_SEL@GOTPAGE
Lloh98:
	ldr	x10, [x10, _P5_PHY0_SEL@GOTPAGEOFF]
	bic	w9, w20, w9
Lloh99:
	ldr	w10, [x10]
	bic	w11, w9, w10
	orr	w9, w10, w9
	cmp	w8, #0
	csel	w20, w11, w9, ne
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_13
	b	LBB0_22
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.cfi_endproc
                                        ; -- End function
	.comm	_MHWSTRAP,4,2                   ; @MHWSTRAP
	.comm	_P6_INTF_DIS,4,2                ; @P6_INTF_DIS
	.comm	_P5_INTF_MODE_RGMII,4,2         ; @P5_INTF_MODE_RGMII
	.comm	_P5_INTF_DIS_S,4,2              ; @P5_INTF_DIS_S
	.comm	_P5_INTF_SEL_GMAC5,4,2          ; @P5_INTF_SEL_GMAC5
	.comm	_FORCE_MODE,4,2                 ; @FORCE_MODE
	.comm	_IPG_96BIT_WITH_SHORT_IPG,4,2   ; @IPG_96BIT_WITH_SHORT_IPG
	.comm	_IPG_CFG_S,4,2                  ; @IPG_CFG_S
	.comm	_MAC_MODE,4,2                   ; @MAC_MODE
	.comm	_MAC_TX_EN,4,2                  ; @MAC_TX_EN
	.comm	_MAC_RX_EN,4,2                  ; @MAC_RX_EN
	.comm	_BKOFF_EN,4,2                   ; @BKOFF_EN
	.comm	_BACKPR_EN,4,2                  ; @BACKPR_EN
	.comm	_FORCE_LINK,4,2                 ; @FORCE_LINK
	.comm	_FORCE_RX_FC,4,2                ; @FORCE_RX_FC
	.comm	_FORCE_TX_FC,4,2                ; @FORCE_TX_FC
	.comm	_FORCE_SPD_S,4,2                ; @FORCE_SPD_S
	.comm	_FORCE_DPX,4,2                  ; @FORCE_DPX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is not supported by port5\n"

l_.str.1:                               ; @.str.1
	.asciz	"phy-address"

l_.str.2:                               ; @.str.2
	.asciz	"Only PHY 0/4 can be connected to Port 5\n"

	.comm	_P5_PHY0_SEL,4,2                ; @P5_PHY0_SEL
l_.str.3:                               ; @.str.3
	.asciz	"%s is not supported by port6\n"

	.comm	_P6ECR,4,2                      ; @P6ECR
	.no_dead_strip	_mt7530_mac_port_setup
.subsections_via_symbols
