	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_config_aneg_fiber
_marvell_config_aneg_fiber:             ## @marvell_config_aneg_fiber
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movl	8(%r12), %edi
	movl	12(%r12), %edx
	movl	%edi, %esi
	callq	_linkmode_and
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_phy_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_ADVERTISE_FIBER_1000HALF@GOTPCREL(%rip), %rax
	movq	_ADVERTISE_FIBER_1000FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_LPA_PAUSE_FIBER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	notl	%ebx
	andl	%r14d, %ebx
	movl	8(%r12), %edi
	callq	_linkmode_adv_to_fiber_adv_t
	orl	%ebx, %eax
	cmpl	%r14d, %eax
	jne	LBB0_3
## %bb.5:
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_read
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_BMCR_ISOLATE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_11
## %bb.8:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_10:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_setup_forced            ## TAILCALL
LBB0_3:
	movl	(%r15), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_4
LBB0_11:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_genphy_restart_aneg            ## TAILCALL
LBB0_4:
	movl	%eax, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_FIBER_1000HALF,4,2   ## @ADVERTISE_FIBER_1000HALF
	.comm	_ADVERTISE_FIBER_1000FULL,4,2   ## @ADVERTISE_FIBER_1000FULL
	.comm	_LPA_PAUSE_FIBER,4,2            ## @LPA_PAUSE_FIBER
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BMCR_ISOLATE,4,2               ## @BMCR_ISOLATE
	.no_dead_strip	_marvell_config_aneg_fiber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_config_aneg_fiber
_marvell_config_aneg_fiber:             ; @marvell_config_aneg_fiber
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldp	w0, w2, [x19, #8]
	mov	x1, x0
	bl	_linkmode_and
Lloh3:
	adrp	x21, _MII_ADVERTISE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MII_ADVERTISE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
Lloh5:
	adrp	x8, _ADVERTISE_FIBER_1000HALF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADVERTISE_FIBER_1000HALF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ADVERTISE_FIBER_1000FULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADVERTISE_FIBER_1000FULL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _LPA_PAUSE_FIBER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LPA_PAUSE_FIBER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w22, w20, w8
	ldr	w0, [x19, #8]
	bl	_linkmode_adv_to_fiber_adv_t
	orr	w2, w22, w0
	cmp	w2, w20
	b.ne	LBB0_8
; %bb.3:
Lloh14:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_phy_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.4:
Lloh17:
	adrp	x8, _BMCR_ANENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.5:
Lloh20:
	adrp	x8, _BMCR_ISOLATE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BMCR_ISOLATE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_9
; %bb.6:
	mov	w20, #0
	b	LBB0_11
LBB0_7:
	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	_genphy_setup_forced
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_10
LBB0_9:
	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	_genphy_restart_aneg
LBB0_10:
	mov	x20, x0
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_FIBER_1000HALF,4,2   ; @ADVERTISE_FIBER_1000HALF
	.comm	_ADVERTISE_FIBER_1000FULL,4,2   ; @ADVERTISE_FIBER_1000FULL
	.comm	_LPA_PAUSE_FIBER,4,2            ; @LPA_PAUSE_FIBER
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BMCR_ISOLATE,4,2               ; @BMCR_ISOLATE
	.no_dead_strip	_marvell_config_aneg_fiber
.subsections_via_symbols
