	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_mdio_read
_sr_mdio_read:                          ## @sr_mdio_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_netdev_priv
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_7
LBB0_2:
	movq	%rax, %r15
	movq	_MII_BMSR@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_SR_NSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_sr_read_reg
	movq	_NSR_LINKST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-40(%rbp), %eax
	je	LBB0_5
## %bb.4:
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_sr_share_read_word
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %r8d
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	jmp	LBB0_6
LBB0_5:
	leaq	-36(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r14d, %edx
	callq	_sr_share_read_word
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	movq	_BMSR_LSTATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	notl	%r8d
	andl	%eax, %r8d
LBB0_6:
	movl	%r8d, -36(%rbp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	-36(%rbp), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only internal phy supported\n"

	.comm	_MII_BMSR,4,2                   ## @MII_BMSR
	.comm	_SR_NSR,4,2                     ## @SR_NSR
	.comm	_NSR_LINKST,4,2                 ## @NSR_LINKST
	.comm	_BMSR_LSTATUS,4,2               ## @BMSR_LSTATUS
L_.str.1:                               ## @.str.1
	.asciz	"sr_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n"

	.no_dead_strip	_sr_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_mdio_read
_sr_mdio_read:                          ; @sr_mdio_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	cbz	w22, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x21, x0
Lloh2:
	adrp	x8, _MII_BMSR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_BMSR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _SR_NSR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SR_NSR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x21
	bl	_sr_read_reg
	ldr	w8, [sp, #24]
Lloh8:
	adrp	x9, _NSR_LINKST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NSR_LINKST@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	add	x3, sp, #28
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	bl	_sr_share_read_word
	ldr	w0, [sp, #28]
	bl	_le16_to_cpu
Lloh11:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w0
	b	LBB0_6
LBB0_5:
	add	x3, sp, #28
	mov	x0, x21
	mov	w1, #1
	mov	x2, x20
	bl	_sr_share_read_word
	ldr	w0, [sp, #28]
	bl	_le16_to_cpu
Lloh14:
	adrp	x8, _BMSR_LSTATUS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BMSR_LSTATUS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	bic	w8, w0, w8
LBB0_6:
	str	w8, [sp, #28]
	stp	x20, x8, [sp, #8]
	str	xzr, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	ldr	w0, [sp, #28]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only internal phy supported\n"

	.comm	_MII_BMSR,4,2                   ; @MII_BMSR
	.comm	_SR_NSR,4,2                     ; @SR_NSR
	.comm	_NSR_LINKST,4,2                 ; @NSR_LINKST
	.comm	_BMSR_LSTATUS,4,2               ; @BMSR_LSTATUS
l_.str.1:                               ; @.str.1
	.asciz	"sr_mdio_read() phy_id=0x%02x, loc=0x%02x, returns=0x%04x\n"

	.no_dead_strip	_sr_mdio_read
.subsections_via_symbols
