	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phylink_mii_emul_read
_phylink_mii_emul_read:                 ## @phylink_mii_emul_read
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	16(%rsi), %eax
	movl	%eax, -24(%rbp)
	movl	12(%rsi), %eax
	movl	%eax, -28(%rbp)
	movl	8(%rsi), %eax
	movl	%eax, -32(%rbp)
	movl	(%rsi), %eax
	movq	_MLO_PAUSE_SYM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movl	%ecx, -40(%rbp)
	movq	_MLO_PAUSE_ASYM@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	callq	_swphy_read_reg
	movq	_MII_BMSR@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 4(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_BMSR_ANEGCOMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLO_PAUSE_SYM,4,2              ## @MLO_PAUSE_SYM
	.comm	_MLO_PAUSE_ASYM,4,2             ## @MLO_PAUSE_ASYM
	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_BMSR_ANEGCOMPLETE,4,2          ## @BMSR_ANEGCOMPLETE
	.no_dead_strip	_phylink_mii_emul_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phylink_mii_emul_read
_phylink_mii_emul_read:                 ; @phylink_mii_emul_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #16]
	str	w8, [sp, #24]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MLO_PAUSE_SYM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLO_PAUSE_SYM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh3:
	adrp	x10, _MLO_PAUSE_ASYM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLO_PAUSE_ASYM@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w8, w10, w8
	ldr	d0, [x1, #8]
	str	d0, [sp, #16]
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	bl	_swphy_read_reg
Lloh6:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _BMSR_ANEGCOMPLETE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMSR_ANEGCOMPLETE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLO_PAUSE_SYM,4,2              ; @MLO_PAUSE_SYM
	.comm	_MLO_PAUSE_ASYM,4,2             ; @MLO_PAUSE_ASYM
	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_BMSR_ANEGCOMPLETE,4,2          ; @BMSR_ANEGCOMPLETE
	.no_dead_strip	_phylink_mii_emul_read
.subsections_via_symbols
