	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1145_config_init
_m88e1145_config_init:                  ## @m88e1145_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
	movl	$29, %esi
	movl	$27, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$16783, %edx                    ## imm = 0x418F
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$22, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$41690, %edx                    ## imm = 0xA2DA
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_RGMII_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_m88e1145_config_init_rgmii
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movq	(%rbx), %rax
LBB0_7:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_m88e1145_config_init_sgmii
	testl	%eax, %eax
	js	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_marvell_of_reg_init
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ## @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ## @PHY_INTERFACE_MODE_SGMII
	.no_dead_strip	_m88e1145_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88e1145_config_init
_m88e1145_config_init:                  ; @m88e1145_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
	mov	w1, #29
	mov	w2, #27
	bl	_phy_write
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #16783
	bl	_phy_write
	tbnz	w0, #31, LBB0_10
; %bb.2:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #22
	bl	_phy_write
	tbnz	w0, #31, LBB0_10
; %bb.3:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #41690
	bl	_phy_write
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_RGMII_ID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_m88e1145_config_init_rgmii
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x8, [x19]
LBB0_7:
Lloh3:
	adrp	x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_m88e1145_config_init_sgmii
	tbnz	w0, #31, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_marvell_of_reg_init
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RGMII_ID,8,3 ; @PHY_INTERFACE_MODE_RGMII_ID
	.comm	_PHY_INTERFACE_MODE_SGMII,8,3   ; @PHY_INTERFACE_MODE_SGMII
	.no_dead_strip	_m88e1145_config_init
.subsections_via_symbols
