	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_init
_phy_init:                              ## @phy_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	%rsi, %rbx
	movl	(%rdi), %r14d
	leaq	28(%rsi), %rdi
	callq	_dev_name
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_phy_attach
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_CONFIG_NET_MEDIATEK_MDIO_MT7620@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_PHY_BASIC_FEATURES@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PHY_GBIT_FEATURES@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rbx), %ecx
	andl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_start_aneg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_CONFIG_NET_MEDIATEK_MDIO_MT7620,4,2 ## @CONFIG_NET_MEDIATEK_MDIO_MT7620
	.comm	_PHY_GBIT_FEATURES,4,2          ## @PHY_GBIT_FEATURES
	.comm	_PHY_BASIC_FEATURES,4,2         ## @PHY_BASIC_FEATURES
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.no_dead_strip	_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_init
_phy_init:                              ; @phy_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, x1
	ldr	w20, [x0]
	add	x0, x1, #28
	bl	_dev_name
	mov	x1, x0
Lloh0:
	adrp	x8, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_phy_attach
Lloh3:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	stp	xzr, xzr, [x19, #8]
Lloh6:
	adrp	x8, _CONFIG_NET_MEDIATEK_MDIO_MT7620@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONFIG_NET_MEDIATEK_MDIO_MT7620@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IS_ENABLED
Lloh9:
	adrp	x8, _PHY_GBIT_FEATURES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_GBIT_FEATURES@GOTPAGEOFF]
Lloh11:
	adrp	x9, _PHY_BASIC_FEATURES@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PHY_BASIC_FEATURES@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [x19]
	and	w8, w9, w8
	str	w8, [x19]
Lloh13:
	adrp	x9, _ADVERTISED_Autoneg@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_start_aneg
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_CONFIG_NET_MEDIATEK_MDIO_MT7620,4,2 ; @CONFIG_NET_MEDIATEK_MDIO_MT7620
	.comm	_PHY_GBIT_FEATURES,4,2          ; @PHY_GBIT_FEATURES
	.comm	_PHY_BASIC_FEATURES,4,2         ; @PHY_BASIC_FEATURES
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.no_dead_strip	_phy_init
.subsections_via_symbols
