	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7530_cpu_port_enable
_mt7530_cpu_port_enable:                ## @mt7530_cpu_port_enable
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_MT7530_PVC_P
	movq	_PORT_SPEC_TAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt7530_write
	movl	%r14d, %edi
	callq	_MT7530_PSC_P
	movq	_SA_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mt7530_set
	movq	_MT7530_MFC@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movl	%r14d, %edi
	callq	_BIT
	movl	%eax, %edi
	callq	_UNU_FFP
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_mt7530_set
	movq	(%rbx), %rax
	movq	_ID_MT7621@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %r15d
	movq	_CPU_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CPU_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_CPU_PORT
	orl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_mt7530_rmw
LBB0_2:
	movl	%r14d, %edi
	callq	_MT7530_PCR_P
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_dsa_user_ports
	movl	%eax, %edi
	callq	_PCR_MATRIX
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_mt7530_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_SPEC_TAG,4,2              ## @PORT_SPEC_TAG
	.comm	_SA_DIS,4,2                     ## @SA_DIS
	.comm	_MT7530_MFC,4,2                 ## @MT7530_MFC
	.comm	_ID_MT7621,8,3                  ## @ID_MT7621
	.comm	_CPU_MASK,4,2                   ## @CPU_MASK
	.comm	_CPU_EN,4,2                     ## @CPU_EN
	.no_dead_strip	_mt7530_cpu_port_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7530_cpu_port_enable
_mt7530_cpu_port_enable:                ; @mt7530_cpu_port_enable
	.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, x1
	mov	x19, x0
	mov	x0, x1
	bl	_MT7530_PVC_P
	mov	x1, x0
Lloh0:
	adrp	x8, _PORT_SPEC_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_SPEC_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt7530_write
	mov	x0, x20
	bl	_MT7530_PSC_P
	mov	x1, x0
Lloh3:
	adrp	x8, _SA_DIS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SA_DIS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mt7530_set
Lloh6:
	adrp	x22, _MT7530_MFC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MT7530_MFC@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x20
	bl	_BIT
	bl	_UNU_FFP
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mt7530_set
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _ID_MT7621@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ID_MT7621@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x22]
Lloh11:
	adrp	x8, _CPU_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CPU_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _CPU_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CPU_EN@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_CPU_PORT
	orr	w3, w0, w23
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_mt7530_rmw
LBB0_2:
	mov	x0, x20
	bl	_MT7530_PCR_P
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_dsa_user_ports
	bl	_PCR_MATRIX
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mt7530_write
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_SPEC_TAG,4,2              ; @PORT_SPEC_TAG
	.comm	_SA_DIS,4,2                     ; @SA_DIS
	.comm	_MT7530_MFC,4,2                 ; @MT7530_MFC
	.comm	_ID_MT7621,8,3                  ; @ID_MT7621
	.comm	_CPU_MASK,4,2                   ; @CPU_MASK
	.comm	_CPU_EN,4,2                     ; @CPU_EN
	.no_dead_strip	_mt7530_cpu_port_enable
.subsections_via_symbols
