	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	_ETHOC_MII_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	(%r12), %rbx
	movq	(%rdi), %r14
	movq	_MIIADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_MIIADDRESS_ADDR
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ethoc_write
	movq	_MIICOMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MIICOMMAND_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ethoc_write
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_MIISTATUS@GOTPCREL(%rip), %r13
	movq	_MIISTATUS_BUSY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_2
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_MIIRX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ethoc_read
	movl	%eax, %ebx
	movq	_MIICOMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ethoc_write
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ETHOC_MII_TIMEOUT,8,3          ## @ETHOC_MII_TIMEOUT
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _ETHOC_MII_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ETHOC_MII_TIMEOUT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x20, x9, x8
	ldr	x19, [x0]
Lloh5:
	adrp	x8, _MIIADDRESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIIADDRESS@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x1
	mov	x1, x2
	bl	_MIIADDRESS_ADDR
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ethoc_write
Lloh8:
	adrp	x21, _MIICOMMAND@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MIICOMMAND@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _MIICOMMAND_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MIICOMMAND_READ@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethoc_write
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	cbz	x0, LBB0_4
; %bb.1:
Lloh13:
	adrp	x23, _MIISTATUS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MIISTATUS@GOTPAGEOFF]
Lloh15:
	adrp	x24, _MIISTATUS_BUSY@GOTPAGE
Lloh16:
	ldr	x24, [x24, _MIISTATUS_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ethoc_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_schedule
	ldr	x0, [x22]
	mov	x1, x20
	bl	_time_before
	cbnz	x0, LBB0_2
LBB0_4:
Lloh17:
	adrp	x8, _EBUSY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _MIIRX_DATA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MIIRX_DATA@GOTPAGEOFF]
Lloh22:
	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_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ETHOC_MII_TIMEOUT,8,3          ; @ETHOC_MII_TIMEOUT
	.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
