	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6390_setup_errata
_mv88e6390_setup_errata:                ## @mv88e6390_setup_errata
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_mv88e6390_setup_errata_applied
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	movq	_BR_STATE_DISABLED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_port_set_state
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	cmpl	%eax, %ebx
	jl	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$15, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	$448, %r8d                      ## imm = 0x1C0
	callq	_mv88e6xxx_port_hidden_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_mv88e6xxx_num_ports
	cmpl	%eax, %ebx
	jl	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mv88e6xxx_software_reset       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_STATE_DISABLED,4,2          ## @BR_STATE_DISABLED
	.no_dead_strip	_mv88e6390_setup_errata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6390_setup_errata
_mv88e6390_setup_errata:                ; @mv88e6390_setup_errata
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_mv88e6390_setup_errata_applied
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w20, #0
Lloh0:
	adrp	x21, _BR_STATE_DISABLED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BR_STATE_DISABLED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_mv88e6xxx_port_set_state
	cbnz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w20, w0
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #15
	mov	x2, x20
	mov	w3, #0
	mov	w4, #448
	bl	_mv88e6xxx_port_hidden_write
	cbnz	w0, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_mv88e6xxx_num_ports
	cmp	w20, w0
	b.lt	LBB0_9
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mv88e6xxx_software_reset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_STATE_DISABLED,4,2          ; @BR_STATE_DISABLED
	.no_dead_strip	_mv88e6390_setup_errata
.subsections_via_symbols
