	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1510_config_aneg
_m88e1510_config_aneg:                  ## @m88e1510_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, %r14
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_m88e1318_config_aneg
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	(%r14), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_MII_MARVELL_FIBER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_marvell_config_aneg_fiber
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_marvell_set_page               ## TAILCALL
LBB0_5:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_marvell_set_page
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ## @MII_MARVELL_COPPER_PAGE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_MARVELL_FIBER_PAGE,4,2     ## @MII_MARVELL_FIBER_PAGE
	.no_dead_strip	_m88e1510_config_aneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1510_config_aneg
_m88e1510_config_aneg:                  ; @m88e1510_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	x21, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_m88e1318_config_aneg
	tbnz	w0, #31, LBB0_7
; %bb.2:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _MII_MARVELL_FIBER_PAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_MARVELL_FIBER_PAGE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_marvell_config_aneg_fiber
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	w1, [x21]
	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	_marvell_set_page
LBB0_7:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_marvell_set_page
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ; @MII_MARVELL_COPPER_PAGE
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_MARVELL_FIBER_PAGE,4,2     ; @MII_MARVELL_FIBER_PAGE
	.no_dead_strip	_m88e1510_config_aneg
.subsections_via_symbols
