	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_mdio_op
_do_mdio_op:                            ## @do_mdio_op
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_ENET_IR_MII@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_ENET_IR_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_enet_writel
	movq	_ENET_MIIDATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_enet_writel
	xorl	%eax, %eax
	callq	_wmb
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_enet_readl
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	addl	$-1, %ebx
	jb	LBB0_1
## %bb.3:
	movl	$-1, %ebx
LBB0_4:
	shrl	$31, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENET_IR_MII,4,2                ## @ENET_IR_MII
	.comm	_ENET_IR_REG,4,2                ## @ENET_IR_REG
	.comm	_ENET_MIIDATA_REG,4,2           ## @ENET_MIIDATA_REG
	.no_dead_strip	_do_mdio_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_mdio_op
_do_mdio_op:                            ; @do_mdio_op
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _ENET_IR_MII@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENET_IR_MII@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _ENET_IR_REG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ENET_IR_REG@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_enet_writel
Lloh4:
	adrp	x8, _ENET_MIIDATA_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENET_MIIDATA_REG@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_enet_writel
	bl	_wmb
	mov	w20, #1000
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_enet_readl
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	sub	w20, w20, #1
	cmn	w20, #1
	b.ne	LBB0_1
LBB0_3:
	lsr	w0, w20, #31
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENET_IR_MII,4,2                ; @ENET_IR_MII
	.comm	_ENET_IR_REG,4,2                ; @ENET_IR_REG
	.comm	_ENET_MIIDATA_REG,4,2           ; @ENET_MIIDATA_REG
	.no_dead_strip	_do_mdio_op
.subsections_via_symbols
