	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_mdio_reset_mmd             ## -- Begin function ef4_mdio_reset_mmd
	.p2align	4, 0x90
_ef4_mdio_reset_mmd:                    ## @ef4_mdio_reset_mmd
	.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
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%ecx, %eax
	imull	%edx, %eax
	xorl	%edi, %edi
	cmpl	$5000, %eax                     ## imm = 0x1388
	setge	%dil
	callq	_EF4_BUG_ON_PARANOID
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ef4_mdio_write
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r13d
	movl	%r14d, %edi
	callq	_msleep
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_ef4_mdio_read
	leal	-1(%r13), %ebx
	cmpl	$1, %r13d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MDIO_CTRL1_RESET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_1
LBB0_3:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	$1, %r13d
	cmovnel	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_CTRL1_RESET,4,2           ## @MDIO_CTRL1_RESET
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ef4_mdio_reset_mmd             ; -- Begin function ef4_mdio_reset_mmd
	.p2align	2
_ef4_mdio_reset_mmd:                    ; @ef4_mdio_reset_mmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mul	w8, w3, w2
	mov	w9, #4999
	cmp	w8, w9
	cset	w0, gt
	bl	_EF4_BUG_ON_PARANOID
Lloh0:
	adrp	x23, _MDIO_CTRL1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_CTRL1@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _MDIO_CTRL1_RESET@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_CTRL1_RESET@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x21
	mov	x1, x20
	bl	_ef4_mdio_write
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x22
	mov	x0, x19
	bl	_msleep
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x20
	bl	_ef4_mdio_read
	subs	w22, w22, #1
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	and	w8, w8, w0
	cbnz	w8, LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w25, #1
	csneg	w0, w22, w8, ne
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_CTRL1_RESET,4,2           ; @MDIO_CTRL1_RESET
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
.subsections_via_symbols
