	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1121_config_aneg
_m88e1121_config_aneg:                  ## @m88e1121_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_phy_interface_is_rgmii
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_m88e1121_config_aneg_rgmii_delays
	testl	%eax, %eax
	js	LBB0_10
LBB0_2:
	movl	8(%r14), %esi
	movq	%r14, %rdi
	callq	_marvell_set_polarity
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	callq	_genphy_config_aneg
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	(%r14), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	testl	%ebx, %ebx
	je	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_genphy_soft_reset
	testl	%eax, %eax
	js	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.no_dead_strip	_m88e1121_config_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1121_config_aneg
_m88e1121_config_aneg:                  ; @m88e1121_config_aneg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_phy_interface_is_rgmii
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_m88e1121_config_aneg_rgmii_delays
	tbnz	w0, #31, LBB0_7
LBB0_2:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_marvell_set_polarity
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_genphy_config_aneg
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w20, #0, #0, eq
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_genphy_soft_reset
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.no_dead_strip	_m88e1121_config_aneg
.subsections_via_symbols
