	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_links_ok                ## -- Begin function mdio45_links_ok
	.p2align	4, 0x90
_mdio45_links_ok:                       ## @mdio45_links_ok
	.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	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	movl	%esi, %r14d
	xorl	%ebx, %ebx
	movq	_MDIO_STAT1@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	notl	%r13d
	andl	%r13d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	testl	%r14d, %r14d
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r13d
	movl	%ebx, %ecx
	shll	%cl, %r13d
	btl	%ebx, %r14d
	jae	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	movl	(%r12), %ecx
	movl	%ebx, %edx
	callq	*(%r15)
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MDIO_MMD_PCS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MDIO_MMD_DTEXS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	movq	_MDIO_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	callq	*(%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	movl	(%r12), %ecx
	movl	%ebx, %edx
	callq	*(%r15)
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MDIO_STAT1_LSTATUS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_MDIO_STAT1_FAULT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%edx, %esi
	andl	%ecx, %esi
	cmpl	%edx, %esi
	je	LBB0_10
	jmp	LBB0_13
LBB0_14:
	movl	8(%r15), %esi
	movl	12(%r15), %edi
	movq	_MDIO_MMD_PHYXS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	*(%r15)
	movq	_MDIO_STAT2_RXFAULT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	sete	%cl
	testl	%eax, %eax
	setns	%al
	andb	%cl, %al
	movzbl	%al, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ## @MDIO_MMD_PHYXS
	.comm	_MDIO_STAT2,4,2                 ## @MDIO_STAT2
	.comm	_MDIO_STAT2_RXFAULT,4,2         ## @MDIO_STAT2_RXFAULT
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_MMD_PCS,4,2               ## @MDIO_MMD_PCS
	.comm	_MDIO_MMD_DTEXS,4,2             ## @MDIO_MMD_DTEXS
	.comm	_MDIO_STAT1_FAULT,4,2           ## @MDIO_STAT1_FAULT
	.comm	_MDIO_STAT1_LSTATUS,4,2         ## @MDIO_STAT1_LSTATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdio45_links_ok                ; -- Begin function mdio45_links_ok
	.p2align	2
_mdio45_links_ok:                       ; @mdio45_links_ok
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	cbz	w1, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	w21, #0
	mov	w22, #1
Lloh0:
	adrp	x23, _MDIO_STAT1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_STAT1@GOTPAGEOFF]
Lloh2:
	adrp	x26, _MDIO_MMD_PHYXS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh4:
	adrp	x27, _MDIO_MMD_DTEXS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MDIO_MMD_DTEXS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _MDIO_STAT1_FAULT@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MDIO_STAT1_FAULT@GOTPAGEOFF]
Lloh8:
	adrp	x24, _MDIO_STAT1_LSTATUS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MDIO_STAT1_LSTATUS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cbz	w20, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w25, w22, w21
	tst	w25, w20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x23]
	mov	x2, x21
	blr	x8
Lloh10:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MDIO_MMD_PCS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MDIO_MMD_PCS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x26]
	ldr	w11, [x27]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	ccmp	w21, w10, #4, ne
	ccmp	w21, w11, #4, ne
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldp	w1, w0, [x19, #8]
Lloh16:
	adrp	x9, _MDIO_STAT2@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MDIO_STAT2@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x9]
	mov	x2, x21
	blr	x8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldp	w1, w0, [x19, #8]
	ldr	w3, [x23]
	mov	x2, x21
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	and	w8, w8, w0
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	bic	w20, w20, w25
	b	LBB0_2
LBB0_9:
	ldr	x8, [x19]
	ldp	w1, w0, [x19, #8]
Lloh19:
	adrp	x9, _MDIO_MMD_PHYXS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MDIO_MMD_PHYXS@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x9]
Lloh22:
	adrp	x9, _MDIO_STAT2@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MDIO_STAT2@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x9]
	blr	x8
Lloh25:
	adrp	x8, _MDIO_STAT2_RXFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_STAT2_RXFAULT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	ccmp	w0, #0, #8, eq
	cset	w0, ge
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PHYXS,4,2             ; @MDIO_MMD_PHYXS
	.comm	_MDIO_STAT2,4,2                 ; @MDIO_STAT2
	.comm	_MDIO_STAT2_RXFAULT,4,2         ; @MDIO_STAT2_RXFAULT
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_MMD_PCS,4,2               ; @MDIO_MMD_PCS
	.comm	_MDIO_MMD_DTEXS,4,2             ; @MDIO_MMD_DTEXS
	.comm	_MDIO_STAT1_FAULT,4,2           ; @MDIO_STAT1_FAULT
	.comm	_MDIO_STAT1_LSTATUS,4,2         ; @MDIO_STAT1_LSTATUS
.subsections_via_symbols
