	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_read
_mdio_read:                             ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	callq	_netdev_priv
	movq	%rax, %r15
	xorl	%ebx, %ebx
	cmpl	$44, (%rax)
	sete	%bl
	shll	$8, %ebx
	movq	8(%rax), %rsi
	addq	$12, %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	8(%r15), %rsi
	addq	$4, %rsi
	xorl	%edi, %edi
	callq	_writel
	orl	%r14d, %ebx
	movq	8(%r15), %rsi
	addq	$8, %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_ETH_MII_CMD_SCN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	addq	$4, %rsi
	callq	_writel
	movq	8(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_MII_CMD_SCN,4,2            ## @ETH_MII_CMD_SCN
	.no_dead_strip	_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_read
_mdio_read:                             ; @mdio_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #44
	cset	w21, eq
	ldr	x8, [x0, #8]
	add	x1, x8, #12
	mov	w0, #0
	bl	_writel
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	mov	w0, #0
	bl	_writel
	orr	w0, w19, w21, lsl #8
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	bl	_writel
Lloh0:
	adrp	x8, _ETH_MII_CMD_SCN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_MII_CMD_SCN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20, #8]
	add	x1, x8, #4
	bl	_writel
	ldr	x0, [x20, #8]
	bl	_readl
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_MII_CMD_SCN,4,2            ; @ETH_MII_CMD_SCN
	.no_dead_strip	_mdio_read
.subsections_via_symbols
