	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_init_phy
_fs_init_phy:                           ## @fs_init_phy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movl	$-1, (%rax)
	movq	16(%rax), %rax
	movl	(%rax), %esi
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %r12
	movl	(%r12), %r8d
	movq	_fs_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r12), %edx
	movq	_fs_adjust_link@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_phy_connect_fixed_link
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rax, 8(%rbx)
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_fs_adjust_link,4,2             ## @fs_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not attach to PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_fs_init_phy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_init_phy
_fs_init_phy:                           ; @fs_init_phy
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	stp	xzr, xzr, [x0, #24]
	mov	w8, #-1
	str	w8, [x0]
	ldr	x8, [x0, #16]
	ldr	w1, [x8]
Lloh0:
	adrp	x21, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh2:
	adrp	x2, _fs_adjust_link@GOTPAGE
Lloh3:
	ldr	x2, [x2, _fs_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_of_phy_connect
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x21]
Lloh4:
	adrp	x1, _fs_adjust_link@GOTPAGE
Lloh5:
	ldr	x1, [x1, _fs_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	bl	_of_phy_connect_fixed_link
	cbz	x0, LBB0_4
LBB0_2:
	mov	w8, #0
	str	x0, [x20, #8]
LBB0_3:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_fs_adjust_link,4,2             ; @fs_adjust_link
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not attach to PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_fs_init_phy
.subsections_via_symbols
