	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6390_g1_vtu_data_write
_mv88e6390_g1_vtu_data_write:           ## @mv88e6390_g1_vtu_data_write
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_1
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,4), %eax
	andl	$3, %eax
	movl	%r12d, %ecx
	andb	$14, %cl
	shll	%cl, %eax
	movq	%rbx, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	orl	%eax, -40(%rbp,%rcx)
	incq	%rbx
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	cltq
	addl	$2, %r12d
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.2:
	movl	-40(%rbp), %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	_MV88E6XXX_G1_VTU_DATA1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_mv88e6xxx_g1_write
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-36(%rbp), %edx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_g1_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA1,8,3     ## @MV88E6XXX_G1_VTU_DATA1
	.no_dead_strip	_mv88e6390_g1_vtu_data_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6390_g1_vtu_data_write
_mv88e6390_g1_vtu_data_write:           ; @mv88e6390_g1_vtu_data_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
	mov	x22, #0
	add	x23, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w21, #0xe
	ldr	w9, [x20, x22, lsl #2]
	and	w9, w9, #0x3
	lsl	w8, w9, w8
	ubfx	x9, x22, #3, #29
	lsl	x9, x9, #2
	ldr	w10, [x23, x9]
	orr	w8, w8, w10
	str	w8, [x23, x9]
	add	x22, x22, #1
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	add	w21, w21, #2
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
; %bb.3:
	ldr	w2, [sp, #8]
	b	LBB0_5
LBB0_4:
	mov	w2, #0
LBB0_5:
Lloh0:
	adrp	x20, _MV88E6XXX_G1_VTU_DATA1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MV88E6XXX_G1_VTU_DATA1@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_mv88e6xxx_g1_write
	cbz	w0, LBB0_7
; %bb.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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w2, [sp, #12]
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_mv88e6xxx_g1_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA1,8,3     ; @MV88E6XXX_G1_VTU_DATA1
	.no_dead_strip	_mv88e6390_g1_vtu_data_write
.subsections_via_symbols
