	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fe_connect_phy_node            ## -- Begin function fe_connect_phy_node
	.p2align	4, 0x90
_fe_connect_phy_node:                   ## @fe_connect_phy_node
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %edi
	callq	_be32_to_cpu
	cmpl	$32, %eax
	jl	LBB0_6
LBB0_2:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	callq	_of_get_phy_mode
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movl	20(%r15), %edi
	movq	_fe_phy_link_adjust@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %rbx
	movq	_PHY_GBIT_FEATURES@GOTPCREL(%rip), %rax
	movl	24(%rbx), %ecx
	andl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movl	%ecx, 28(%rbx)
	movl	$1, (%rbx)
	movl	16(%r15), %r13d
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_dev_name
	movl	16(%rbx), %r8d
	movq	8(%rbx), %rcx
	movl	(%rcx), %r9d
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	(%r15), %rax
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_5
LBB0_9:
	movl	16(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_3
LBB0_10:
	movl	16(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rax
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid phy id\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"incorrect phy-mode %d\n"

	.comm	_fe_phy_link_adjust,4,2         ## @fe_phy_link_adjust
L_.str.3:                               ## @.str.3
	.asciz	"could not connect to PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_GBIT_FEATURES,4,2          ## @PHY_GBIT_FEATURES
L_.str.4:                               ## @.str.4
	.asciz	"connected port %d to PHY at %s [uid=%08x, driver=%s]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fe_connect_phy_node            ; -- Begin function fe_connect_phy_node
	.p2align	2
_fe_connect_phy_node:                   ; @fe_connect_phy_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	bl	_be32_to_cpu
	cmp	w0, #32
	b.lt	LBB0_6
LBB0_2:
	ldr	w1, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x21
	bl	_of_get_phy_mode
	mov	x4, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x20, #20]
Lloh6:
	adrp	x8, _fe_phy_link_adjust@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fe_phy_link_adjust@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, x21
	mov	w3, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_of_phy_connect
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
Lloh9:
	adrp	x8, _PHY_GBIT_FEATURES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_GBIT_FEATURES@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	and	w8, w9, w8
	stp	w8, w8, [x0, #24]
	mov	w8, #1
	str	w8, [x0], #20
	ldr	w22, [x20, #16]
	bl	_dev_name
	mov	x3, x0
	ldr	w4, [x21, #16]
	ldr	x8, [x21, #8]
	ldr	w5, [x8]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_dev_info
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	sbfiz	x9, x19, #3, #32
	str	x21, [x8, x9]
	ldr	x8, [x20]
	str	xzr, [x8, x9]
	b	LBB0_5
LBB0_9:
	ldr	w0, [x20, #16]
	str	x4, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	xzr, [x8, w19, sxtw #3]
	b	LBB0_3
LBB0_10:
	ldr	w0, [x20, #16]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	str	xzr, [x8, w19, sxtw #3]
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid phy id\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"incorrect phy-mode %d\n"

	.comm	_fe_phy_link_adjust,4,2         ; @fe_phy_link_adjust
l_.str.3:                               ; @.str.3
	.asciz	"could not connect to PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_GBIT_FEATURES,4,2          ; @PHY_GBIT_FEATURES
l_.str.4:                               ; @.str.4
	.asciz	"connected port %d to PHY at %s [uid=%08x, driver=%s]\n"

.subsections_via_symbols
