	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_poll_fiber_serdes_link_generic
_e1000_poll_fiber_serdes_link_generic:  ## @e1000_poll_fiber_serdes_link_generic
	.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, %r14
	movq	_FIBER_LINK_UP_LIMIT@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_5
## %bb.1:
	movq	_STATUS@GOTPCREL(%rip), %r12
	movq	_E1000_STATUS_LU@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	movl	(%r12), %edi
	callq	_er32
	testq	%rax, (%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	cmpq	%rax, %rbx
	jne	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_11
LBB0_3:
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	je	LBB0_6
LBB0_9:
	movl	$0, (%r14)
	leaq	L_.str.2(%rip), %rdi
	callq	_e_dbg
	jmp	LBB0_10
LBB0_8:
	movl	$0, (%r14)
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIBER_LINK_UP_LIMIT,8,3        ## @FIBER_LINK_UP_LIMIT
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_E1000_STATUS_LU,8,3            ## @E1000_STATUS_LU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Never got a valid link from auto-neg!!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error while checking for link\n"

L_.str.2:                               ## @.str.2
	.asciz	"Valid Link Found\n"

	.no_dead_strip	_e1000_poll_fiber_serdes_link_generic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_poll_fiber_serdes_link_generic
_e1000_poll_fiber_serdes_link_generic:  ; @e1000_poll_fiber_serdes_link_generic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _FIBER_LINK_UP_LIMIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FIBER_LINK_UP_LIMIT@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
Lloh2:
	adrp	x22, _STATUS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _STATUS@GOTPAGEOFF]
Lloh4:
	adrp	x23, _E1000_STATUS_LU@GOTPAGE
Lloh5:
	ldr	x23, [x23, _E1000_STATUS_LU@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	ldr	w0, [x22]
	bl	_er32
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x20, #0
LBB0_5:
	cmp	x20, x8
	b.ne	LBB0_9
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_11
LBB0_8:
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_6
LBB0_9:
	str	wzr, [x19]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_e_dbg
	mov	x20, #0
	b	LBB0_11
LBB0_10:
	str	wzr, [x19]
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FIBER_LINK_UP_LIMIT,8,3        ; @FIBER_LINK_UP_LIMIT
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_E1000_STATUS_LU,8,3            ; @E1000_STATUS_LU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Never got a valid link from auto-neg!!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error while checking for link\n"

l_.str.2:                               ; @.str.2
	.asciz	"Valid Link Found\n"

	.no_dead_strip	_e1000_poll_fiber_serdes_link_generic
.subsections_via_symbols
