	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgene_enet_phy_connect         ## -- Begin function xgene_enet_phy_connect
	.p2align	4, 0x90
_xgene_enet_phy_connect:                ## @xgene_enet_phy_connect
	.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
	callq	_netdev_priv
	movq	8(%rax), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	movl	4(%r12), %r8d
	movq	_xgene_enet_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	movl	4(%r12), %r8d
	movq	_xgene_enet_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_3:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_remove_link_mode
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_phy_remove_link_mode
	movq	%rbx, %rdi
	callq	_phy_support_asym_pause
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %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	_xgene_enet_adjust_link,4,2     ## @xgene_enet_adjust_link
L_.str.1:                               ## @.str.1
	.asciz	"Could not connect to PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xgene_enet_phy_connect         ; -- Begin function xgene_enet_phy_connect
	.p2align	2
_xgene_enet_phy_connect:                ; @xgene_enet_phy_connect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23]
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	ldr	w4, [x20, #4]
Lloh2:
	adrp	x2, _xgene_enet_adjust_link@GOTPAGE
Lloh3:
	ldr	x2, [x2, _xgene_enet_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbnz	x21, LBB0_3
; %bb.2:
	ldr	x0, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_of_parse_phandle
	mov	x22, x0
	ldr	w4, [x20, #4]
Lloh6:
	adrp	x2, _xgene_enet_adjust_link@GOTPAGE
Lloh7:
	ldr	x2, [x2, _xgene_enet_adjust_link@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x21, LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh11:
	adrp	x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_10baseT_Half_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh14:
	adrp	x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_100baseT_Half_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
Lloh17:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
	mov	x0, x21
	bl	_phy_support_asym_pause
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_5:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy-handle"

	.comm	_xgene_enet_adjust_link,4,2     ; @xgene_enet_adjust_link
l_.str.1:                               ; @.str.1
	.asciz	"Could not connect to PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_ETHTOOL_LINK_MODE_10baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_10baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_100baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_100baseT_Half_BIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
.subsections_via_symbols
