	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1145_config_init_rgmii
_m88e1145_config_init_rgmii:            ## @m88e1145_config_init_rgmii
	.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
	callq	_m88e1111_config_init_rgmii_delays
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_MARVELL_PHY_M1145_FLAGS_RESISTANCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$18, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$4032, %edx                     ## imm = 0xFC0
	movl	$1152, %ecx                     ## imm = 0x480
	callq	_phy_modify
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$29, %esi
	movl	$3, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movl	$30, %esi
	movl	$32768, %edx                    ## imm = 0x8000
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MARVELL_PHY_M1145_FLAGS_RESISTANCE,4,2 ## @MARVELL_PHY_M1145_FLAGS_RESISTANCE
	.no_dead_strip	_m88e1145_config_init_rgmii
.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_rgmii
_m88e1145_config_init_rgmii:            ; @m88e1145_config_init_rgmii
	.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	_m88e1111_config_init_rgmii_delays
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _MARVELL_PHY_M1145_FLAGS_RESISTANCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MARVELL_PHY_M1145_FLAGS_RESISTANCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #18
	bl	_phy_write
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #4032
	mov	w3, #1152
	bl	_phy_modify
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #29
	mov	w2, #3
	bl	_phy_write
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #30
	mov	w2, #32768
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
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
	.cfi_endproc
                                        ; -- End function
	.comm	_MARVELL_PHY_M1145_FLAGS_RESISTANCE,4,2 ; @MARVELL_PHY_M1145_FLAGS_RESISTANCE
	.no_dead_strip	_m88e1145_config_init_rgmii
.subsections_via_symbols
