	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_mii_read
_emac_mii_read:                         ## @emac_mii_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_MDIO_USERACCESS_GO@GOTPCREL(%rip), %rax
	movq	_MDIO_USERACCESS_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	shll	$21, %edx
	movq	_MDIO_USERACCESS_REGADR@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	orl	%edx, %ecx
	shll	$16, %ebx
	movq	_MDIO_USERACCESS_PHYADR@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%ecx, %ebx
	xorl	%edi, %edi
	callq	_MDIO_USERACCESS
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_emac_mdio_write
	xorl	%edi, %edi
	callq	_MDIO_USERACCESS
	movl	%eax, %edi
	callq	_emac_mdio_read
	movq	_MDIO_USERACCESS_DATA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_WAIT_FOR_USER_ACCESS,4,2  ## @MDIO_WAIT_FOR_USER_ACCESS
	.comm	_MDIO_USERACCESS_GO,4,2         ## @MDIO_USERACCESS_GO
	.comm	_MDIO_USERACCESS_READ,4,2       ## @MDIO_USERACCESS_READ
	.comm	_MDIO_USERACCESS_REGADR,4,2     ## @MDIO_USERACCESS_REGADR
	.comm	_MDIO_USERACCESS_PHYADR,4,2     ## @MDIO_USERACCESS_PHYADR
	.comm	_MDIO_USERACCESS_DATA,4,2       ## @MDIO_USERACCESS_DATA
	.no_dead_strip	_emac_mii_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_mii_read
_emac_mii_read:                         ; @emac_mii_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MDIO_USERACCESS_GO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_USERACCESS_GO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MDIO_USERACCESS_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MDIO_USERACCESS_READ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MDIO_USERACCESS_REGADR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MDIO_USERACCESS_REGADR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w2, lsl #21
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _MDIO_USERACCESS_PHYADR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MDIO_USERACCESS_PHYADR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w9, w9, w1, lsl #16
	orr	w19, w8, w9
	mov	w0, #0
	bl	_MDIO_USERACCESS
	mov	x1, x19
	bl	_emac_mdio_write
	mov	w0, #0
	bl	_MDIO_USERACCESS
	bl	_emac_mdio_read
Lloh12:
	adrp	x8, _MDIO_USERACCESS_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_USERACCESS_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_WAIT_FOR_USER_ACCESS,4,2  ; @MDIO_WAIT_FOR_USER_ACCESS
	.comm	_MDIO_USERACCESS_GO,4,2         ; @MDIO_USERACCESS_GO
	.comm	_MDIO_USERACCESS_READ,4,2       ; @MDIO_USERACCESS_READ
	.comm	_MDIO_USERACCESS_REGADR,4,2     ; @MDIO_USERACCESS_REGADR
	.comm	_MDIO_USERACCESS_PHYADR,4,2     ; @MDIO_USERACCESS_PHYADR
	.comm	_MDIO_USERACCESS_DATA,4,2       ; @MDIO_USERACCESS_DATA
	.no_dead_strip	_emac_mii_read
.subsections_via_symbols
