	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_of_phy_connect         ## -- Begin function phylink_of_phy_connect
	.p2align	4, 0x90
_phylink_of_phy_connect:                ## @phylink_of_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), %rax
	movq	_MLO_AN_FIXED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_MLO_AN_INBAND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	8(%r15), %edi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	jne	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movl	8(%r15), %ecx
	movl	12(%r15), %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_of_phy_attach
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_of_node_put
	testq	%r14, %r14
	je	LBB0_7
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_phylink_bringup_phy
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_phy_detach
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movq	(%r15), %rax
	movq	_MLO_AN_PHY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLO_AN_FIXED,8,3               ## @MLO_AN_FIXED
	.comm	_MLO_AN_INBAND,8,3              ## @MLO_AN_INBAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy-handle"

L_.str.1:                               ## @.str.1
	.asciz	"phy"

L_.str.2:                               ## @.str.2
	.asciz	"phy-device"

	.comm	_MLO_AN_PHY,8,3                 ## @MLO_AN_PHY
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phylink_of_phy_connect         ; -- Begin function phylink_of_phy_connect
	.p2align	2
_phylink_of_phy_connect:                ; @phylink_of_phy_connect
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MLO_AN_FIXED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLO_AN_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x9, _MLO_AN_INBAND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLO_AN_INBAND@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_phy_interface_mode_is_8023z
	cbz	x0, LBB0_5
LBB0_3:
	mov	w19, #0
LBB0_4:
	mov	x0, x19
	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_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_8:
	ldp	w3, w0, [x19, #8]
	mov	x1, x22
	mov	x2, x20
	bl	_of_phy_attach
	mov	x20, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x20, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_phylink_bringup_phy
	mov	x19, x0
	cbz	w0, LBB0_4
; %bb.10:
	mov	x0, x20
	bl	_phy_detach
	b	LBB0_4
LBB0_11:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _MLO_AN_PHY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MLO_AN_PHY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_12:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MLO_AN_FIXED,8,3               ; @MLO_AN_FIXED
	.comm	_MLO_AN_INBAND,8,3              ; @MLO_AN_INBAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy-handle"

l_.str.1:                               ; @.str.1
	.asciz	"phy"

l_.str.2:                               ; @.str.2
	.asciz	"phy-device"

	.comm	_MLO_AN_PHY,8,3                 ; @MLO_AN_PHY
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
