	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_phy_init
_ravb_phy_init:                         ## @ravb_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	%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
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r14
	callq	_netdev_priv
	movq	%rax, %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_of_phy_register_fixed_link
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
LBB0_3:
	movq	%r14, %rdi
	callq	_of_node_get
	movq	%rax, %rbx
LBB0_4:
	movq	_ravb_adjust_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r12, %r12
	je	LBB0_5
## %bb.6:
	movq	_r8a7795es10@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_soc_device_match
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_set_max_speed
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movq	%r12, %rdi
	callq	_phy_disconnect
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_9:
	movq	%r14, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_of_phy_deregister_fixed_link
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_info
LBB0_12:
	movq	_ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_Pause_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_Asym_Pause_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_phy_remove_link_mode
	movq	%r12, %rdi
	callq	_phy_attached_info
	xorl	%r13d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy-handle"

	.comm	_ravb_adjust_link,4,2           ## @ravb_adjust_link
L_.str.1:                               ## @.str.1
	.asciz	"failed to connect PHY\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_r8a7795es10,4,2                ## @r8a7795es10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
L_.str.2:                               ## @.str.2
	.asciz	"failed to limit PHY to 100Mbit/s\n"

L_.str.3:                               ## @.str.3
	.asciz	"limited PHY to 100Mbit/s\n"

	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_Pause_BIT,4,2 ## @ETHTOOL_LINK_MODE_Pause_BIT
	.comm	_ETHTOOL_LINK_MODE_Asym_Pause_BIT,4,2 ## @ETHTOOL_LINK_MODE_Asym_Pause_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.no_dead_strip	_ravb_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_phy_init
_ravb_phy_init:                         ; @ravb_phy_init
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	bl	_netdev_priv
	mov	x21, x0
	stp	xzr, xzr, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_of_phy_register_fixed_link
	mov	x22, x0
	cbnz	w0, LBB0_13
LBB0_3:
	mov	x0, x19
	bl	_of_node_get
	mov	x22, x0
LBB0_4:
Lloh2:
	adrp	x8, _ravb_adjust_link@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ravb_adjust_link@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x21, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _r8a7795es10@GOTPAGE
Lloh6:
	ldr	x8, [x8, _r8a7795es10@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_soc_device_match
	cbz	x0, LBB0_12
; %bb.6:
Lloh8:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_set_max_speed
	cbz	w0, LBB0_11
; %bb.7:
	mov	x22, x0
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x21
	bl	_phy_disconnect
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x19
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_of_phy_deregister_fixed_link
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
LBB0_12:
Lloh20:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh23:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Full_BIT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh26:
	adrp	x8, _ETHTOOL_LINK_MODE_Pause_BIT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Pause_BIT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh29:
	adrp	x8, _ETHTOOL_LINK_MODE_Asym_Pause_BIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_Asym_Pause_BIT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh32:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh35:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
	mov	x0, x21
	bl	_phy_attached_info
	mov	w22, #0
LBB0_13:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy-handle"

	.comm	_ravb_adjust_link,4,2           ; @ravb_adjust_link
l_.str.1:                               ; @.str.1
	.asciz	"failed to connect PHY\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_r8a7795es10,4,2                ; @r8a7795es10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
l_.str.2:                               ; @.str.2
	.asciz	"failed to limit PHY to 100Mbit/s\n"

l_.str.3:                               ; @.str.3
	.asciz	"limited PHY to 100Mbit/s\n"

	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_10baseT_Full_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Full_BIT
	.comm	_ETHTOOL_LINK_MODE_Pause_BIT,4,2 ; @ETHTOOL_LINK_MODE_Pause_BIT
	.comm	_ETHTOOL_LINK_MODE_Asym_Pause_BIT,4,2 ; @ETHTOOL_LINK_MODE_Asym_Pause_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.no_dead_strip	_ravb_phy_init
.subsections_via_symbols
