	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_phy_has_link               ## -- Begin function igc_phy_has_link
	.p2align	4, 0x90
_igc_phy_has_link:                      ## @igc_phy_has_link
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	shrq	$4, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rax
	negq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movb	$1, %r13b
	movl	$1, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_udelay
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r14
	setl	%r13b
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	%r14, %rax
	incq	%rax
	incq	%r14
	cmpq	$1, %rax
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PHY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rdx
	callq	*(%rbx)
	testq	%r12, %r12
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1000, %r12                     ## imm = 0x3E8
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdelay
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_udelay
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_PHY_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-64(%rbp), %rdx
	callq	*(%rbx)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MII_SR_LINK_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, -64(%rbp)
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1000, %r12                     ## imm = 0x3E8
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mdelay
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_16:
	movzbl	%r13b, %edx
	andl	$1, %edx
	movl	%edx, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_STATUS,4,2                 ## @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,8,3         ## @MII_SR_LINK_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_phy_has_link               ; -- Begin function igc_phy_has_link
	.p2align	2
_igc_phy_has_link:                      ; @igc_phy_has_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	cmp	x1, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x24, #0
	lsr	x8, x2, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x23, x8, #4
	mov	w25, #1
Lloh0:
	adrp	x26, _PHY_STATUS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _PHY_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _MII_SR_LINK_STATUS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MII_SR_LINK_STATUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_udelay
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, x21
	cset	w25, lt
	cmp	x21, x24
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x26]
	add	x2, sp, #8
	mov	x0, x22
	blr	x8
	cmp	x20, #1
	b.lt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #1000
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_mdelay
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_udelay
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	w1, [x26]
	add	x2, sp, #8
	mov	x0, x22
	blr	x8
	cbnz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x27]
	tst	x9, x8
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x20, #1000
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_mdelay
	b	LBB0_3
LBB0_13:
	mov	w25, #0
LBB0_14:
	mov	x0, #0
LBB0_15:
	and	w8, w25, #0x1
	str	w8, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_STATUS,4,2                 ; @PHY_STATUS
	.comm	_MII_SR_LINK_STATUS,8,3         ; @MII_SR_LINK_STATUS
.subsections_via_symbols
