	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_mdio_read
_ethoc_mdio_read:                       ## @ethoc_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	_MIIADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_MIIADDRESS_ADDR
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ethoc_write
	movq	_MIICOMMAND@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_MIICOMMAND_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethoc_write
	movq	_MIISTATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	movq	_MIISTATUS_BUSY@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.3:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.4:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.5:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.6:
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_MIIRX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ethoc_write
	movl	%ebx, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIIADDRESS,4,2                 ## @MIIADDRESS
	.comm	_MIICOMMAND,4,2                 ## @MIICOMMAND
	.comm	_MIICOMMAND_READ,4,2            ## @MIICOMMAND_READ
	.comm	_MIISTATUS,4,2                  ## @MIISTATUS
	.comm	_MIISTATUS_BUSY,4,2             ## @MIISTATUS_BUSY
	.comm	_MIIRX_DATA,4,2                 ## @MIIRX_DATA
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ethoc_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_mdio_read
_ethoc_mdio_read:                       ; @ethoc_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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MIIADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIIADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	mov	x1, x2
	bl	_MIIADDRESS_ADDR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ethoc_write
Lloh3:
	adrp	x21, _MIICOMMAND@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MIICOMMAND@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x8, _MIICOMMAND_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIICOMMAND_READ@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethoc_write
Lloh8:
	adrp	x20, _MIISTATUS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _MIISTATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ethoc_read
Lloh10:
	adrp	x22, _MIISTATUS_BUSY@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MIISTATUS_BUSY@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _MIIRX_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIIRX_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ethoc_read
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_ethoc_write
	mov	x0, x20
LBB0_7:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MIIADDRESS,4,2                 ; @MIIADDRESS
	.comm	_MIICOMMAND,4,2                 ; @MIICOMMAND
	.comm	_MIICOMMAND_READ,4,2            ; @MIICOMMAND_READ
	.comm	_MIISTATUS,4,2                  ; @MIISTATUS
	.comm	_MIISTATUS_BUSY,4,2             ; @MIISTATUS_BUSY
	.comm	_MIIRX_DATA,4,2                 ; @MIIRX_DATA
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ethoc_mdio_read
.subsections_via_symbols
