	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6185_g1_vtu_getnext       ## -- Begin function mv88e6185_g1_vtu_getnext
	.p2align	4, 0x90
_mv88e6185_g1_vtu_getnext:              ## @mv88e6185_g1_vtu_getnext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mv88e6xxx_g1_vtu_getnext
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mv88e6185_g1_vtu_data_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MV88E6XXX_G1_VTU_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mv88e6xxx_g1_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-20(%rbp), %eax
	movl	%eax, %ecx
	andl	$15, %ecx
	shrl	$4, %eax
	andl	$240, %eax
	orl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G1_VTU_OP,4,2        ## @MV88E6XXX_G1_VTU_OP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6185_g1_vtu_getnext       ; -- Begin function mv88e6185_g1_vtu_getnext
	.p2align	2
_mv88e6185_g1_vtu_getnext:              ; @mv88e6185_g1_vtu_getnext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_mv88e6xxx_g1_vtu_getnext
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6185_g1_vtu_data_read
	cbnz	w0, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _MV88E6XXX_G1_VTU_OP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_G1_VTU_OP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g1_read
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #12]
	lsr	w9, w8, #4
	and	w9, w9, #0xf0
	bfxil	w9, w8, #0, #4
	str	w9, [x19]
	b	LBB0_1
LBB0_6:
	mov	w0, #0
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G1_VTU_OP,4,2        ; @MV88E6XXX_G1_VTU_OP
.subsections_via_symbols
