	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_phy_get_and_connect         ## -- Begin function of_phy_get_and_connect
	.p2align	4, 0x90
_of_phy_get_and_connect:                ## @of_phy_get_and_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_of_get_phy_mode
	movq	%rax, %r12
	testl	$-2147483648, %r12d             ## imm = 0x80000000
	jne	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_of_phy_is_fixed_link
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_of_phy_register_fixed_link
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_of_node_get
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_of_phy_connect
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	%r14, %rax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_4:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"broken fixed-link specification\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_phy_get_and_connect         ; -- Begin function of_phy_get_and_connect
	.p2align	2
_of_phy_get_and_connect:                ; @of_phy_get_and_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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_of_get_phy_mode
	mov	x21, x0
	tbnz	w21, #31, LBB0_7
; %bb.1:
	mov	x0, x22
	bl	_of_phy_is_fixed_link
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x22
	bl	_of_phy_register_fixed_link
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_of_node_get
	mov	x22, x0
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x22, x0
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	w3, #0
	mov	x4, x21
	bl	_of_phy_connect
	mov	x19, x0
	mov	x0, x22
	bl	_of_node_put
	mov	x0, x19
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_7:
	mov	x0, #0
LBB0_8:
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"broken fixed-link specification\n"

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

.subsections_via_symbols
