	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igc_wait_autoneg
_igc_wait_autoneg:                      ## @igc_wait_autoneg
	.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	_PHY_AUTO_NEG_LIMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jle	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	incq	%rbx
	movq	_PHY_STATUS@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r14
	movq	_MII_SR_AUTONEG_COMPLETE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	*(%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	*(%r15)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	testq	%rax, -48(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$100, %edi
	callq	_msleep
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_2
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_AUTO_NEG_LIMIT,8,3         ## @PHY_AUTO_NEG_LIMIT
	.comm	_PHY_STATUS,4,2                 ## @PHY_STATUS
	.comm	_MII_SR_AUTONEG_COMPLETE,8,3    ## @MII_SR_AUTONEG_COMPLETE
	.no_dead_strip	_igc_wait_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igc_wait_autoneg
_igc_wait_autoneg:                      ; @igc_wait_autoneg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _PHY_AUTO_NEG_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_AUTO_NEG_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x0
	add	x20, x8, #1
Lloh3:
	adrp	x21, _PHY_STATUS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PHY_STATUS@GOTPAGEOFF]
Lloh5:
	adrp	x22, _MII_SR_AUTONEG_COMPLETE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MII_SR_AUTONEG_COMPLETE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	tst	x9, x8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_msleep
	sub	x20, x20, #1
	cmp	x20, #1
	b.gt	LBB0_2
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_AUTO_NEG_LIMIT,8,3         ; @PHY_AUTO_NEG_LIMIT
	.comm	_PHY_STATUS,4,2                 ; @PHY_STATUS
	.comm	_MII_SR_AUTONEG_COMPLETE,8,3    ; @MII_SR_AUTONEG_COMPLETE
	.no_dead_strip	_igc_wait_autoneg
.subsections_via_symbols
