	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_wait_for_link
_bnx2x_wait_for_link:                   ## @bnx2x_wait_for_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	%rdx, %rsi
	callq	_bnx2x_link_test
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	$1401, %ebx                     ## imm = 0x579
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$20, %edi
	callq	_msleep
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_link_test
	decl	%ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:
	cmpl	$1, %ebx
	jg	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bnx2x_link_test
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
LBB0_8:
	cmpl	$0, (%r15)
	jne	LBB0_12
## %bb.9:
	movl	$-1401, %ebx                    ## imm = 0xFA87
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$20, %edi
	callq	_msleep
	cmpl	$0, (%r15)
	je	LBB0_10
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_BNX2X_MSG_ETHTOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ## @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout waiting for link up\n"

L_.str.1:                               ## @.str.1
	.asciz	"Timeout waiting for link init\n"

	.no_dead_strip	_bnx2x_wait_for_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_wait_for_link
_bnx2x_wait_for_link:                   ; @bnx2x_wait_for_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	mov	x1, x2
	bl	_bnx2x_link_test
	cbz	x0, LBB0_8
; %bb.2:
	mov	w21, #1401
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_link_test
	cbnz	x0, LBB0_3
; %bb.5:
	cmp	w21, #1
	b.gt	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_link_test
	cbz	x0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_8:
	ldr	w8, [x19]
	cbnz	w8, LBB0_12
; %bb.9:
	mov	w20, #-1401
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	adds	w20, w20, #1
	b.hs	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #20
	bl	_msleep
	ldr	w8, [x19]
	cbz	w8, LBB0_10
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh5:
	adrp	x8, _BNX2X_MSG_ETHTOOL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_MSG_ETHTOOL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DP
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_ETHTOOL,4,2          ; @BNX2X_MSG_ETHTOOL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout waiting for link up\n"

l_.str.1:                               ; @.str.1
	.asciz	"Timeout waiting for link init\n"

	.no_dead_strip	_bnx2x_wait_for_link
.subsections_via_symbols
