	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef4_mdio_check_mmd
_ef4_mdio_check_mmd:                    ## @ef4_mdio_check_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MDIO_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ef4_mdio_read
	movq	_MDIO_STAT2_DEVPRST@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MDIO_STAT2_DEVPRST_VAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%r14d, %r8d
	callq	_netif_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_MDIO_STAT2,4,2                 ## @MDIO_STAT2
	.comm	_MDIO_STAT2_DEVPRST,4,2         ## @MDIO_STAT2_DEVPRST
	.comm	_MDIO_STAT2_DEVPRST_VAL,4,2     ## @MDIO_STAT2_DEVPRST_VAL
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY MMD %d not responding.\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ef4_mdio_check_mmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef4_mdio_check_mmd
_ef4_mdio_check_mmd:                    ; @ef4_mdio_check_mmd
	.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_MMD_AN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _MDIO_STAT2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_STAT2@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_ef4_mdio_read
Lloh6:
	adrp	x8, _MDIO_STAT2_DEVPRST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_STAT2_DEVPRST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh9:
	adrp	x9, _MDIO_STAT2_DEVPRST_VAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MDIO_STAT2_DEVPRST_VAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _hw@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x20]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x4, x19
	bl	_netif_err
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_MDIO_STAT2,4,2                 ; @MDIO_STAT2
	.comm	_MDIO_STAT2_DEVPRST,4,2         ; @MDIO_STAT2_DEVPRST
	.comm	_MDIO_STAT2_DEVPRST_VAL,4,2     ; @MDIO_STAT2_DEVPRST_VAL
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY MMD %d not responding.\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ef4_mdio_check_mmd
.subsections_via_symbols
