	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	movl	$-1, (%rax)
	movq	8(%rax), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_1
## %bb.2:
	movq	_PHY_INTERFACE_MODE_MII@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_PHY_INTERFACE_MODE_RMII@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %r8d
	movl	(%rax), %esi
	movq	_fs_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_INTERFACE_MODE_RMII,4,2    ## @PHY_INTERFACE_MODE_RMII
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ## @PHY_INTERFACE_MODE_MII
	.comm	_fs_adjust_link,4,2             ## @fs_adjust_link
	.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	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	_netdev_priv
	stp	xzr, xzr, [x0, #16]
	mov	w8, #-1
	str	w8, [x0]
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
Lloh0:
	adrp	x10, _PHY_INTERFACE_MODE_RMII@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PHY_INTERFACE_MODE_RMII@GOTPAGEOFF]
Lloh2:
	adrp	x11, _PHY_INTERFACE_MODE_MII@GOTPAGE
Lloh3:
	ldr	x11, [x11, _PHY_INTERFACE_MODE_MII@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w4, [x9]
	ldr	w1, [x8]
Lloh4:
	adrp	x2, _fs_adjust_link@GOTPAGE
Lloh5:
	ldr	x2, [x2, _fs_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	bl	_of_phy_connect
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_2
; %bb.1:
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	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_INTERFACE_MODE_RMII,4,2    ; @PHY_INTERFACE_MODE_RMII
	.comm	_PHY_INTERFACE_MODE_MII,4,2     ; @PHY_INTERFACE_MODE_MII
	.comm	_fs_adjust_link,4,2             ; @fs_adjust_link
	.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
