	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether_AwaitCarrier
_ether_AwaitCarrier:                    ## @ether_AwaitCarrier
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %edi
	callq	_device2ether
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_CARRIER_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	subl	$1, 8(%rbx)
	jae	LBB0_3
## %bb.2:
	movq	_CARRIER_LOST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	movq	_CARRIER_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_ether_MessageIn
	movq	(%rbx), %rax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARRIER_OK,8,3                 ## @CARRIER_OK
	.comm	_CARRIER_LOST,8,3               ## @CARRIER_LOST
	.comm	_CARRIER_PENDING,8,3            ## @CARRIER_PENDING
	.no_dead_strip	_ether_AwaitCarrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether_AwaitCarrier
_ether_AwaitCarrier:                    ; @ether_AwaitCarrier
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w0, [x0]
	bl	_device2ether
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _CARRIER_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARRIER_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	sub	w9, w8, #1
	str	w9, [x19, #8]
	cbz	w8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _CARRIER_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CARRIER_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ether_MessageIn
	ldr	x0, [x19]
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _CARRIER_LOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CARRIER_LOST@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	str	x0, [x19]
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CARRIER_OK,8,3                 ; @CARRIER_OK
	.comm	_CARRIER_LOST,8,3               ; @CARRIER_LOST
	.comm	_CARRIER_PENDING,8,3            ; @CARRIER_PENDING
	.no_dead_strip	_ether_AwaitCarrier
.subsections_via_symbols
