	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mii_discover_phy3
_mii_discover_phy3:                     ## @mii_discover_phy3
	.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
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movzwl	%r14w, %edx
	orl	(%rax), %edx
	movl	%edx, (%rax)
	movl	16(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	movq	_phy_info@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movl	(%r15), %edx
	sarl	$4, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rcx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax,%rbx,8), %rcx
	incq	%rbx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_5
LBB0_6:
	movl	4(%rcx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_5:
	movl	%ebx, %eax
	movq	(%r14), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 8(%r15)
	movl	$1, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fec: PHY @ 0x%x, ID 0x%08x"

	.comm	_phy_info,8,3                   ## @phy_info
L_.str.1:                               ## @.str.1
	.asciz	" -- %s\n"

L_.str.2:                               ## @.str.2
	.asciz	" -- unknown PHY!\n"

	.no_dead_strip	_mii_discover_phy3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mii_discover_phy3
_mii_discover_phy3:                     ; @mii_discover_phy3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x19, x0
	and	w8, w20, #0xffff
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	w9, [x0, #16]
	stp	x9, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh2:
	adrp	x20, _phy_info@GOTPAGE
Lloh3:
	ldr	x20, [x20, _phy_info@GOTPAGEOFF]
	ldr	x10, [x20]
	ldr	x8, [x10]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x21, #0
	ldr	w9, [x19]
	asr	w9, w9, #4
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	cmp	w11, w9
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x21, #1
	ldr	x8, [x10, x21, lsl #3]
	mov	x21, x22
	cbnz	x8, LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x22, #0
LBB0_5:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	mov	x21, x22
	b	LBB0_7
LBB0_6:
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
LBB0_7:
	ldr	x8, [x20]
	ldr	x8, [x8, w21, uxtw #3]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fec: PHY @ 0x%x, ID 0x%08x"

	.comm	_phy_info,8,3                   ; @phy_info
l_.str.1:                               ; @.str.1
	.asciz	" -- %s\n"

l_.str.2:                               ; @.str.2
	.asciz	" -- unknown PHY!\n"

	.no_dead_strip	_mii_discover_phy3
.subsections_via_symbols
