	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_config_aneg
_marvell_config_aneg:                   ## @marvell_config_aneg
	.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, %rbx
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_BMCR_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$31, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$8204, %edx                     ## imm = 0x200C
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.3:
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$5, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	%rbx, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	_MII_M1011_PHY_SCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_M1011_PHY_SCR_AUTO_CROSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.7:
	movq	_MII_M1111_PHY_LED_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MII_M1111_PHY_LED_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_genphy_config_aneg
	testl	%eax, %eax
	js	LBB0_13
## %bb.9:
	movq	(%rbx), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movl	(%r14), %esi
	movl	(%r15), %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_13
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ## @BMCR_RESET
	.comm	_MII_M1011_PHY_SCR,4,2          ## @MII_M1011_PHY_SCR
	.comm	_MII_M1011_PHY_SCR_AUTO_CROSS,4,2 ## @MII_M1011_PHY_SCR_AUTO_CROSS
	.comm	_MII_M1111_PHY_LED_CONTROL,4,2  ## @MII_M1111_PHY_LED_CONTROL
	.comm	_MII_M1111_PHY_LED_DIRECT,4,2   ## @MII_M1111_PHY_LED_DIRECT
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.no_dead_strip	_marvell_config_aneg
.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
_marvell_config_aneg:                   ; @marvell_config_aneg
	.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
Lloh0:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _BMCR_RESET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BMCR_RESET@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.1:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #31
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.2:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #8204
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.3:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #5
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.4:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.5:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #256
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.6:
Lloh4:
	adrp	x8, _MII_M1011_PHY_SCR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MII_M1011_PHY_SCR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _MII_M1011_PHY_SCR_AUTO_CROSS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MII_M1011_PHY_SCR_AUTO_CROSS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.7:
Lloh10:
	adrp	x8, _MII_M1111_PHY_LED_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MII_M1111_PHY_LED_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _MII_M1111_PHY_LED_DIRECT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MII_M1111_PHY_LED_DIRECT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
; %bb.8:
	mov	x0, x19
	bl	_genphy_config_aneg
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	w1, [x20]
	ldr	w8, [x21]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_phy_write
	tbnz	w0, #31, LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_RESET,4,2                 ; @BMCR_RESET
	.comm	_MII_M1011_PHY_SCR,4,2          ; @MII_M1011_PHY_SCR
	.comm	_MII_M1011_PHY_SCR_AUTO_CROSS,4,2 ; @MII_M1011_PHY_SCR_AUTO_CROSS
	.comm	_MII_M1111_PHY_LED_CONTROL,4,2  ; @MII_M1111_PHY_LED_CONTROL
	.comm	_MII_M1111_PHY_LED_DIRECT,4,2   ; @MII_M1111_PHY_LED_DIRECT
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.no_dead_strip	_marvell_config_aneg
.subsections_via_symbols
