	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_watchdog
_emac_watchdog:                         ## @emac_watchdog
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_EMAC_ASSERT_LOCKED
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	decq	%rax
	movq	%rax, (%rbx)
	jne	LBB0_8
## %bb.2:
	movq	16(%rbx), %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_if_printf
LBB0_7:
	movq	_IFCOUNTER_OERRORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_if_inc_counter
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_emac_init_locked
	movq	%r14, %rdi
	callq	_IFQ_DRV_IS_EMPTY
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_emac_start_locked              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"watchdog timeout (missed link)\n"

L_.str.1:                               ## @.str.1
	.asciz	"watchdog timeout -- resetting\n"

	.comm	_IFCOUNTER_OERRORS,4,2          ## @IFCOUNTER_OERRORS
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.no_dead_strip	_emac_watchdog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_watchdog
_emac_watchdog:                         ; @emac_watchdog
	.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
	mov	x19, x0
	bl	_EMAC_ASSERT_LOCKED
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
	subs	x8, x8, #1
	str	x8, [x19]
	b.ne	LBB0_8
; %bb.2:
	ldp	x8, x20, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _bootverbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_if_printf
LBB0_7:
Lloh7:
	adrp	x8, _IFCOUNTER_OERRORS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IFCOUNTER_OERRORS@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_if_inc_counter
Lloh10:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_emac_init_locked
	mov	x0, x20
	bl	_IFQ_DRV_IS_EMPTY
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emac_start_locked
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"watchdog timeout (missed link)\n"

l_.str.1:                               ; @.str.1
	.asciz	"watchdog timeout -- resetting\n"

	.comm	_IFCOUNTER_OERRORS,4,2          ; @IFCOUNTER_OERRORS
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.no_dead_strip	_emac_watchdog
.subsections_via_symbols
