	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6390_g1_vtu_data_read
_mv88e6390_g1_vtu_data_read:            ## @mv88e6390_g1_vtu_data_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MV88E6XXX_G1_VTU_DATA1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-56(%rbp), %rdx
	callq	_mv88e6xxx_g1_read
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-52(%rbp), %rdx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_mv88e6xxx_g1_read
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r12, %rdi
	callq	_mv88e6xxx_num_ports
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	shrq	%rax
	andl	$2147483644, %eax               ## imm = 0x7FFFFFFC
	movl	-56(%rbp,%rax), %eax
	movl	%r13d, %ecx
	andb	$14, %cl
	shrl	%cl, %eax
	andl	$3, %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movq	%r12, %rdi
	callq	_mv88e6xxx_num_ports
	cltq
	addl	$2, %r13d
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA1,8,3     ## @MV88E6XXX_G1_VTU_DATA1
	.no_dead_strip	_mv88e6390_g1_vtu_data_read
.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_read
_mv88e6390_g1_vtu_data_read:            ; @mv88e6390_g1_vtu_data_read
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x21, _MV88E6XXX_G1_VTU_DATA1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MV88E6XXX_G1_VTU_DATA1@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x22, sp
	mov	x2, sp
	bl	_mv88e6xxx_g1_read
	cbnz	w0, LBB0_6
; %bb.1:
	add	x2, x22, #4
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x20
	bl	_mv88e6xxx_g1_read
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w21, #0
	mov	x22, #0
	mov	x23, sp
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	x8, x22, #3, #29
	ldr	w8, [x23, x8, lsl #2]
	and	w9, w21, #0xe
	lsr	w8, w8, w9
	and	w8, w8, #0x3
	str	w8, [x19, x22, lsl #2]
	add	x22, x22, #1
	mov	x0, x20
	bl	_mv88e6xxx_num_ports
	add	w21, w21, #2
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_VTU_DATA1,8,3     ; @MV88E6XXX_G1_VTU_DATA1
	.no_dead_strip	_mv88e6390_g1_vtu_data_read
.subsections_via_symbols
