	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_mdio_probe
_emac_mdio_probe:                       ## @emac_mdio_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	32(%rax), %esi
	movl	24(%rax), %edi
	movl	28(%rax), %r8d
	movq	_emac_handle_link_change@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_phy_set_max_speed
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	$-1, (%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_emac_handle_link_change,4,2    ## @emac_handle_link_change
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find the PHY\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.no_dead_strip	_emac_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_mdio_probe
_emac_mdio_probe:                       ; @emac_mdio_probe
	.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
	bl	_netdev_priv
	mov	x19, x0
	ldr	w1, [x0, #32]
	ldr	w0, [x0, #24]
	ldr	w4, [x19, #28]
Lloh0:
	adrp	x2, _emac_handle_link_change@GOTPAGE
Lloh1:
	ldr	x2, [x2, _emac_handle_link_change@GOTPAGEOFF]
	mov	w3, #0
	bl	_of_phy_connect
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_phy_set_max_speed
	mov	w0, #0
	stp	xzr, xzr, [x19, #8]
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_emac_handle_link_change,4,2    ; @emac_handle_link_change
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find the PHY\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.no_dead_strip	_emac_mdio_probe
.subsections_via_symbols
