	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6060_setup_port
_mv88e6060_setup_port:                  ## @mv88e6060_setup_port
	.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, %r13
	movl	%esi, %edi
	callq	_REG_PORT
	movl	%eax, %r15d
	movq	_PORT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_dsa_is_cpu_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PORT_CONTROL_TRAILER@GOTPCREL(%rip), %rax
	movq	_PORT_CONTROL_INGRESS_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PORT_CONTROL_STATE_FORWARDING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	jmp	LBB0_3
LBB0_2:
	movq	_PORT_CONTROL_STATE_FORWARDING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_3:
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_reg_write
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_PORT_VLAN_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %ebx
	andl	$15, %ebx
	movq	_PORT_VLAN_MAP_DBNUM_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_dsa_is_cpu_port
	movl	(%r13), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_dsa_user_ports
	jmp	LBB0_7
LBB0_6:
	movl	%r14d, %esi
	callq	_dsa_to_port
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_BIT
LBB0_7:
	movl	%eax, %ecx
	orl	%ebx, %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_reg_write
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_PORT_ASSOC_VECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_BIT
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_CONTROL,4,2               ## @PORT_CONTROL
	.comm	_PORT_CONTROL_TRAILER,4,2       ## @PORT_CONTROL_TRAILER
	.comm	_PORT_CONTROL_INGRESS_MODE,4,2  ## @PORT_CONTROL_INGRESS_MODE
	.comm	_PORT_CONTROL_STATE_FORWARDING,4,2 ## @PORT_CONTROL_STATE_FORWARDING
	.comm	_PORT_VLAN_MAP,4,2              ## @PORT_VLAN_MAP
	.comm	_PORT_VLAN_MAP_DBNUM_SHIFT,4,2  ## @PORT_VLAN_MAP_DBNUM_SHIFT
	.comm	_PORT_ASSOC_VECTOR,4,2          ## @PORT_ASSOC_VECTOR
	.no_dead_strip	_mv88e6060_setup_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6060_setup_port
_mv88e6060_setup_port:                  ; @mv88e6060_setup_port
	.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	_REG_PORT
	mov	x21, x0
Lloh0:
	adrp	x8, _PORT_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dsa_is_cpu_port
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PORT_CONTROL_TRAILER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORT_CONTROL_TRAILER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PORT_CONTROL_INGRESS_MODE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PORT_CONTROL_INGRESS_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _PORT_CONTROL_STATE_FORWARDING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PORT_CONTROL_STATE_FORWARDING@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w8, w9
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _PORT_CONTROL_STATE_FORWARDING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PORT_CONTROL_STATE_FORWARDING@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_reg_write
	cbnz	w0, LBB0_8
; %bb.4:
Lloh15:
	adrp	x8, _PORT_VLAN_MAP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORT_VLAN_MAP@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	and	w8, w20, #0xf
Lloh18:
	adrp	x9, _PORT_VLAN_MAP_DBNUM_SHIFT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PORT_VLAN_MAP_DBNUM_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	lsl	w23, w8, w9
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dsa_is_cpu_port
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	bl	_dsa_user_ports
	b	LBB0_7
LBB0_6:
	mov	x1, x20
	bl	_dsa_to_port
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_BIT
LBB0_7:
	orr	w3, w0, w23
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_reg_write
	cbz	w0, LBB0_9
LBB0_8:
	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
LBB0_9:
Lloh21:
	adrp	x8, _PORT_ASSOC_VECTOR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PORT_ASSOC_VECTOR@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	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	_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_CONTROL,4,2               ; @PORT_CONTROL
	.comm	_PORT_CONTROL_TRAILER,4,2       ; @PORT_CONTROL_TRAILER
	.comm	_PORT_CONTROL_INGRESS_MODE,4,2  ; @PORT_CONTROL_INGRESS_MODE
	.comm	_PORT_CONTROL_STATE_FORWARDING,4,2 ; @PORT_CONTROL_STATE_FORWARDING
	.comm	_PORT_VLAN_MAP,4,2              ; @PORT_VLAN_MAP
	.comm	_PORT_VLAN_MAP_DBNUM_SHIFT,4,2  ; @PORT_VLAN_MAP_DBNUM_SHIFT
	.comm	_PORT_ASSOC_VECTOR,4,2          ; @PORT_ASSOC_VECTOR
	.no_dead_strip	_mv88e6060_setup_port
.subsections_via_symbols
