	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_dt_phy_connect
_emac_dt_phy_connect:                   ## @emac_dt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	40(%rbx), %r8d
	movl	44(%rbx), %edi
	movq	_emac_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	16(%rax), %rcx
	movl	8(%rcx), %edx
	movq	24(%rbx), %rsi
	movl	%edx, 16(%rsi)
	movl	4(%rcx), %edx
	movl	%edx, 12(%rsi)
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rsi)
	movq	_emac_dt_mdio_phy_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rsi)
	leaq	16(%rbx), %rdi
	movl	8(%rax), %esi
	callq	_ethtool_convert_link_mode_to_legacy_u32
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_emac_adjust_link,4,2           ## @emac_adjust_link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to connect to PHY.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_emac_dt_mdio_phy_ops,4,2       ## @emac_dt_mdio_phy_ops
	.no_dead_strip	_emac_dt_phy_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_dt_phy_connect
_emac_dt_phy_connect:                   ; @emac_dt_phy_connect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_3
; %bb.1:
	ldp	w4, w0, [x19, #40]
Lloh3:
	adrp	x2, _emac_adjust_link@GOTPAGE
Lloh4:
	ldr	x2, [x2, _emac_adjust_link@GOTPAGEOFF]
	mov	x1, x20
	mov	w3, #0
	bl	_of_phy_connect
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0, #16]
	ldr	w9, [x8, #8]
	ldr	x10, [x19, #24]
	str	w9, [x10, #16]
	ldr	d0, [x8]
	str	d0, [x10, #8]
Lloh5:
	adrp	x8, _emac_dt_mdio_phy_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _emac_dt_mdio_phy_ops@GOTPAGEOFF]
	str	x8, [x10]
	add	x8, x19, #16
	ldr	w1, [x0, #8]
	mov	x0, x8
	bl	_ethtool_convert_link_mode_to_legacy_u32
	mov	w0, #0
	ldr	x8, [x19]
	ldr	d0, [x8]
	str	d0, [x19, #8]
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_emac_adjust_link,4,2           ; @emac_adjust_link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to connect to PHY.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_emac_dt_mdio_phy_ops,4,2       ; @emac_dt_mdio_phy_ops
	.no_dead_strip	_emac_dt_phy_connect
.subsections_via_symbols
