	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_link
_wait_for_link:                         ## @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
	callq	_netdev_priv
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_1
## %bb.2:
	subl	$1, %ecx
	movl	%ecx, (%rax)
	jae	LBB0_3
## %bb.4:
	movl	$-1, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$0, (%rax)
LBB0_3:
	movq	_TIMER_CB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIMER_CB,4,2                   ## @TIMER_CB
	.no_dead_strip	_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 wait_for_link
_wait_for_link:                         ; @wait_for_link
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_netdev_priv
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	sub	w9, w8, #1
	str	w9, [x0]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	w9, #-1
	str	w9, [x0]
	b	LBB0_5
LBB0_3:
	str	wzr, [x0]
LBB0_4:
Lloh0:
	adrp	x8, _TIMER_CB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIMER_CB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIMER_CB,4,2                   ; @TIMER_CB
	.no_dead_strip	_wait_for_link
.subsections_via_symbols
