	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_mii_probe
_fec_enet_mii_probe:                    ## @fec_enet_mii_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	addl	$3, %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	40(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	24(%r12), %r8d
	movq	_fec_enet_adjust_link@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_of_phy_connect
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_PHY_MAX_ADDR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movl	(%r12), %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movl	(%rbx), %eax
	cmpl	%eax, %r15d
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	movl	%r15d, %esi
	callq	_mdiobus_is_registered_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	subl	$1, %r13d
	jae	LBB0_9
## %bb.8:
	movq	32(%r12), %rax
	movq	(%rax), %rsi
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlcpy
	movl	(%rbx), %eax
	jmp	LBB0_10
LBB0_4:
	xorl	%r15d, %r15d
LBB0_10:
	cmpl	%eax, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jl	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_info
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strlcpy
	xorl	%r15d, %r15d
LBB0_12:
	movq	_PHY_ID_FMT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r13, %rcx
	movl	%r15d, %r8d
	callq	_snprintf
	movl	24(%r12), %ecx
	movq	_fec_enet_adjust_link@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_phy_connect
	movq	%rax, %r15
LBB0_13:
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	_FEC_QUIRK_HAS_GBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_phy_set_max_speed
	movq	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_phy_remove_link_mode
	movq	%r15, %rdi
	callq	_phy_support_sym_pause
	jmp	LBB0_18
LBB0_17:
	movq	%r15, %rdi
	movl	$100, %esi
	callq	_phy_set_max_speed
LBB0_18:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	%r15, %rdi
	callq	_phy_attached_info
	xorl	%ebx, %ebx
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.comm	_fec_enet_adjust_link,4,2       ## @fec_enet_adjust_link
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to connect to phy\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PHY_MAX_ADDR,4,2               ## @PHY_MAX_ADDR
L_.str.1:                               ## @.str.1
	.asciz	"no PHY, assuming direct connection to switch\n"

L_.str.2:                               ## @.str.2
	.asciz	"fixed-0"

	.comm	_PHY_ID_FMT,8,3                 ## @PHY_ID_FMT
L_.str.3:                               ## @.str.3
	.asciz	"could not attach to PHY\n"

	.comm	_FEC_QUIRK_HAS_GBIT,4,2         ## @FEC_QUIRK_HAS_GBIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ## @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.no_dead_strip	_fec_enet_mii_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_mii_probe
_fec_enet_mii_probe:                    ; @fec_enet_mii_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_netdev_priv
	mov	x19, x0
Lloh3:
	adrp	x25, _MII_BUS_ID_SIZE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MII_BUS_ID_SIZE@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	add	w23, w8, #3
	mov	x9, x23
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	x1, [x0, #40]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w4, [x19, #24]
Lloh9:
	adrp	x2, _fec_enet_adjust_link@GOTPAGE
Lloh10:
	ldr	x2, [x2, _fec_enet_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	w3, #0
	bl	_of_phy_connect
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_3:
Lloh16:
	adrp	x26, _PHY_MAX_ADDR@GOTPAGE
Lloh17:
	ldr	x26, [x26, _PHY_MAX_ADDR@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	w24, #0
	ldr	w27, [x19]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	w8, [x26]
	cmp	w24, w8
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	mov	x1, x24
	bl	_mdiobus_is_registered_device
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w27, LBB0_21
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w27, w27, #1
	b	LBB0_5
LBB0_9:
	mov	w24, #0
LBB0_10:
	cmp	w24, w8
	b.lt	LBB0_12
LBB0_11:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_info
	ldr	w2, [x25]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strlcpy
	mov	w24, #0
LBB0_12:
Lloh22:
	adrp	x8, _PHY_ID_FMT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PHY_ID_FMT@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	mov	x4, x24
	bl	_snprintf
	ldr	w3, [x19, #24]
Lloh25:
	adrp	x2, _fec_enet_adjust_link@GOTPAGE
Lloh26:
	ldr	x2, [x2, _fec_enet_adjust_link@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	bl	_phy_connect
	mov	x21, x0
LBB0_13:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x21
	bl	_PTR_ERR
	b	LBB0_19
LBB0_15:
	ldr	w8, [x19, #4]
Lloh29:
	adrp	x9, _FEC_QUIRK_HAS_GBIT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _FEC_QUIRK_HAS_GBIT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	mov	x0, x21
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w1, #1000
	bl	_phy_set_max_speed
Lloh32:
	adrp	x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETHTOOL_LINK_MODE_1000baseT_Half_BIT@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_phy_remove_link_mode
	mov	x0, x21
	bl	_phy_support_sym_pause
	b	LBB0_18
LBB0_17:
	mov	w1, #100
	bl	_phy_set_max_speed
LBB0_18:
	stp	xzr, xzr, [x19, #8]
	mov	x0, x21
	bl	_phy_attached_info
	mov	w0, #0
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	x8, [x19, #32]
	ldr	x1, [x8]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_strlcpy
	ldr	w8, [x26]
	cmp	w24, w8
	b.ge	LBB0_11
	b	LBB0_12
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.comm	_fec_enet_adjust_link,4,2       ; @fec_enet_adjust_link
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to connect to phy\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PHY_MAX_ADDR,4,2               ; @PHY_MAX_ADDR
l_.str.1:                               ; @.str.1
	.asciz	"no PHY, assuming direct connection to switch\n"

l_.str.2:                               ; @.str.2
	.asciz	"fixed-0"

	.comm	_PHY_ID_FMT,8,3                 ; @PHY_ID_FMT
l_.str.3:                               ; @.str.3
	.asciz	"could not attach to PHY\n"

	.comm	_FEC_QUIRK_HAS_GBIT,4,2         ; @FEC_QUIRK_HAS_GBIT
	.comm	_ETHTOOL_LINK_MODE_1000baseT_Half_BIT,4,2 ; @ETHTOOL_LINK_MODE_1000baseT_Half_BIT
	.no_dead_strip	_fec_enet_mii_probe
.subsections_via_symbols
