	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1118_config_init
_m88e1118_config_init:                  ## @m88e1118_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MII_MARVELL_MSCR_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$4208, %edx                     ## imm = 0x1070
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_MII_MARVELL_LED_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_MARVELL_PHY_M1118_DNS323_LEDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	movl	$542, %eax                      ## imm = 0x21E
	movl	$4352, %edx                     ## imm = 0x1100
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_marvell_of_reg_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_MII_MARVELL_COPPER_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_marvell_set_page
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_genphy_soft_reset              ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_MARVELL_MSCR_PAGE,4,2      ## @MII_MARVELL_MSCR_PAGE
	.comm	_MII_MARVELL_LED_PAGE,4,2       ## @MII_MARVELL_LED_PAGE
	.comm	_MARVELL_PHY_M1118_DNS323_LEDS,4,2 ## @MARVELL_PHY_M1118_DNS323_LEDS
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ## @MII_MARVELL_COPPER_PAGE
	.no_dead_strip	_m88e1118_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1118_config_init
_m88e1118_config_init:                  ; @m88e1118_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
Lloh0:
	adrp	x8, _MII_MARVELL_MSCR_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_MARVELL_MSCR_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #21
	mov	w2, #4208
	bl	_phy_write
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _MII_MARVELL_LED_PAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MII_MARVELL_LED_PAGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _MARVELL_PHY_M1118_DNS323_LEDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MARVELL_PHY_M1118_DNS323_LEDS@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #4352
	mov	w9, #542
	csel	w2, w9, w8, eq
	mov	x0, x19
	mov	w1, #16
	bl	_phy_write
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_marvell_of_reg_init
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh9:
	adrp	x8, _MII_MARVELL_COPPER_PAGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_MARVELL_COPPER_PAGE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_marvell_set_page
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genphy_soft_reset
LBB0_7:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_MARVELL_MSCR_PAGE,4,2      ; @MII_MARVELL_MSCR_PAGE
	.comm	_MII_MARVELL_LED_PAGE,4,2       ; @MII_MARVELL_LED_PAGE
	.comm	_MARVELL_PHY_M1118_DNS323_LEDS,4,2 ; @MARVELL_PHY_M1118_DNS323_LEDS
	.comm	_MII_MARVELL_COPPER_PAGE,4,2    ; @MII_MARVELL_COPPER_PAGE
	.no_dead_strip	_m88e1118_config_init
.subsections_via_symbols
