	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1510_config_init
_m88e1510_config_init:                  ## @m88e1510_config_init
	.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, %rbx
	movq	(%rdi), %rax
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$18, %esi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_MII_88E1510_GEN_CTRL_REG_1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MII_88E1510_GEN_CTRL_REG_1_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_phy_modify
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	(%r14), %esi
	movq	_MII_88E1510_GEN_CTRL_REG_1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_phy_modify
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_m88e1318_config_init           ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_88E1510_GEN_CTRL_REG_1,4,2 ## @MII_88E1510_GEN_CTRL_REG_1
	.comm	_MII_88E1510_GEN_CTRL_REG_1_MODE_MASK,4,2 ## @MII_88E1510_GEN_CTRL_REG_1_MODE_MASK
	.comm	_MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII,4,2 ## @MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII
	.comm	_MII_88E1510_GEN_CTRL_REG_1_RESET,4,2 ## @MII_88E1510_GEN_CTRL_REG_1_RESET
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ## @MII_MARVELL_COPPER_PAGE
	.no_dead_strip	_m88e1510_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1510_config_init
_m88e1510_config_init:                  ; @m88e1510_config_init
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #18
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh3:
	adrp	x20, _MII_88E1510_GEN_CTRL_REG_1@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MII_88E1510_GEN_CTRL_REG_1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _MII_88E1510_GEN_CTRL_REG_1_MODE_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MII_88E1510_GEN_CTRL_REG_1_MODE_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_phy_modify
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _MII_88E1510_GEN_CTRL_REG_1_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_88E1510_GEN_CTRL_REG_1_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_modify
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh14:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_6
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_m88e1318_config_init
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MII_88E1510_GEN_CTRL_REG_1,4,2 ; @MII_88E1510_GEN_CTRL_REG_1
	.comm	_MII_88E1510_GEN_CTRL_REG_1_MODE_MASK,4,2 ; @MII_88E1510_GEN_CTRL_REG_1_MODE_MASK
	.comm	_MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII,4,2 ; @MII_88E1510_GEN_CTRL_REG_1_MODE_SGMII
	.comm	_MII_88E1510_GEN_CTRL_REG_1_RESET,4,2 ; @MII_88E1510_GEN_CTRL_REG_1_RESET
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ; @MII_MARVELL_COPPER_PAGE
	.no_dead_strip	_m88e1510_config_init
.subsections_via_symbols
