	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88e1111_config_init_rgmii
_m88e1111_config_init_rgmii:            ## @m88e1111_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_m88e1111_config_init_rgmii_delays
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_MII_M1111_PHY_EXT_SR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	_MII_M1111_HWCFG_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_M1111_PHY_EXT_SR,4,2       ## @MII_M1111_PHY_EXT_SR
	.comm	_MII_M1111_HWCFG_MODE_MASK,4,2  ## @MII_M1111_HWCFG_MODE_MASK
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_RES,4,2 ## @MII_M1111_HWCFG_FIBER_COPPER_RES
	.comm	_MII_M1111_HWCFG_MODE_FIBER_RGMII,4,2 ## @MII_M1111_HWCFG_MODE_FIBER_RGMII
	.comm	_MII_M1111_HWCFG_MODE_COPPER_RGMII,4,2 ## @MII_M1111_HWCFG_MODE_COPPER_RGMII
	.no_dead_strip	_m88e1111_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 m88e1111_config_init_rgmii
_m88e1111_config_init_rgmii:            ; @m88e1111_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_3
; %bb.1:
Lloh0:
	adrp	x20, _MII_M1111_PHY_EXT_SR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_M1111_PHY_EXT_SR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_M1111_HWCFG_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MII_M1111_HWCFG_FIBER_COPPER_RES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MII_M1111_HWCFG_MODE_COPPER_RGMII@GOTPAGEOFF]
Lloh10:
	adrp	x11, _MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPAGE
Lloh11:
	ldr	x11, [x11, _MII_M1111_HWCFG_MODE_FIBER_RGMII@GOTPAGEOFF]
	tst	w8, w9
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_M1111_PHY_EXT_SR,4,2       ; @MII_M1111_PHY_EXT_SR
	.comm	_MII_M1111_HWCFG_MODE_MASK,4,2  ; @MII_M1111_HWCFG_MODE_MASK
	.comm	_MII_M1111_HWCFG_FIBER_COPPER_RES,4,2 ; @MII_M1111_HWCFG_FIBER_COPPER_RES
	.comm	_MII_M1111_HWCFG_MODE_FIBER_RGMII,4,2 ; @MII_M1111_HWCFG_MODE_FIBER_RGMII
	.comm	_MII_M1111_HWCFG_MODE_COPPER_RGMII,4,2 ; @MII_M1111_HWCFG_MODE_COPPER_RGMII
	.no_dead_strip	_m88e1111_config_init_rgmii
.subsections_via_symbols
