	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_mac_config
_mv88e6xxx_mac_config:                  ## @mv88e6xxx_mac_config
	.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	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_MLO_AN_PHY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mv88e6xxx_phy_is_internal
	testq	%rax, %rax
	jne	LBB0_10
LBB0_2:
	movq	_MLO_AN_FIXED@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	leaq	4(%r13), %rcx
	movq	_LINK_FORCED_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_mv88e6xxx_phy_is_internal
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SPEED_UNFORCED@GOTPCREL(%rip), %rdx
	movq	_DUPLEX_UNFORCED@GOTPCREL(%rip), %rcx
	movq	_LINK_UNFORCED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	leaq	8(%r13), %rax
	leaq	4(%r13), %rcx
LBB0_7:
	movq	%r13, %rdx
LBB0_8:
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r14d
	movl	(%rax), %r15d
	movl	16(%r13), %edi
	movq	_Pause@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phylink_test
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	movq	%r12, %rdi
	callq	_mv88e6xxx_reg_lock
	movl	12(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	%esi, %r14d
	movl	%ebx, %r9d
	callq	_mv88e6xxx_port_setup_mac
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mv88e6xxx_reg_unlock
	testl	%ebx, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	jne	LBB0_11
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLO_AN_PHY,4,2                 ## @MLO_AN_PHY
	.comm	_MLO_AN_FIXED,4,2               ## @MLO_AN_FIXED
	.comm	_LINK_FORCED_UP,4,2             ## @LINK_FORCED_UP
	.comm	_SPEED_UNFORCED,4,2             ## @SPEED_UNFORCED
	.comm	_DUPLEX_UNFORCED,4,2            ## @DUPLEX_UNFORCED
	.comm	_LINK_UNFORCED,4,2              ## @LINK_UNFORCED
	.comm	_Pause,4,2                      ## @Pause
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%d: failed to configure MAC\n"

	.no_dead_strip	_mv88e6xxx_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_mac_config
_mv88e6xxx_mac_config:                  ; @mv88e6xxx_mac_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _MLO_AN_PHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLO_AN_PHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6xxx_phy_is_internal
	cbnz	x0, LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _MLO_AN_FIXED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLO_AN_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.3:
	add	x9, x22, #4
Lloh6:
	adrp	x8, _LINK_FORCED_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LINK_FORCED_UP@GOTPAGEOFF]
	mov	x10, x22
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6xxx_phy_is_internal
Lloh8:
	adrp	x10, _SPEED_UNFORCED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SPEED_UNFORCED@GOTPAGEOFF]
Lloh10:
	adrp	x9, _DUPLEX_UNFORCED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DUPLEX_UNFORCED@GOTPAGEOFF]
Lloh12:
	adrp	x8, _LINK_UNFORCED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LINK_UNFORCED@GOTPAGEOFF]
	add	x11, x22, #8
	add	x12, x22, #4
	cmp	x0, #0
	csel	x8, x8, x11, ne
	csel	x9, x9, x12, ne
	csel	x10, x10, x22, ne
LBB0_5:
	ldr	w23, [x10]
	ldr	w24, [x9]
	ldr	w25, [x8]
	ldr	w0, [x22, #16]
Lloh14:
	adrp	x8, _Pause@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Pause@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_phylink_test
	cmp	w0, #0
	cset	w26, ne
	mov	x0, x21
	bl	_mv88e6xxx_reg_lock
	ldr	w6, [x22, #12]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x25
	mov	x3, x23
	mov	x4, x24
	mov	x5, x26
	bl	_mv88e6xxx_port_setup_mac
	mov	x22, x0
	mov	x0, x21
	bl	_mv88e6xxx_reg_unlock
	cbz	w22, LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_8
LBB0_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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MLO_AN_PHY,4,2                 ; @MLO_AN_PHY
	.comm	_MLO_AN_FIXED,4,2               ; @MLO_AN_FIXED
	.comm	_LINK_FORCED_UP,4,2             ; @LINK_FORCED_UP
	.comm	_SPEED_UNFORCED,4,2             ; @SPEED_UNFORCED
	.comm	_DUPLEX_UNFORCED,4,2            ; @DUPLEX_UNFORCED
	.comm	_LINK_UNFORCED,4,2              ; @LINK_UNFORCED
	.comm	_Pause,4,2                      ; @Pause
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%d: failed to configure MAC\n"

	.no_dead_strip	_mv88e6xxx_mac_config
.subsections_via_symbols
