	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iflib_timer
_iflib_timer:                           ## @iflib_timer
	.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, %rbx
	movq	64(%rdi), %r14
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_hz@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movl	4(%r14), %edi
	callq	_if_getdrvflags
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.1:
	movl	%r12d, %eax
	subl	(%rbx), %eax
	movl	(%r13), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jl	LBB0_8
## %bb.2:
	movl	%r12d, (%rbx)
	movl	36(%rbx), %esi
	movq	%r14, %rdi
	callq	_IFDI_TIMER
	movq	8(%rbx), %rax
	movq	_IFLIB_QUEUE_HUNG@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_5
## %bb.3:
	movq	16(%rbx), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_12
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_12
LBB0_5:
	movl	56(%rbx), %edi
	callq	_ifmp_ring_is_stalled
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
LBB0_7:
	movq	24(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_8:
	cmpq	$0, 48(%rbx)
	je	LBB0_10
## %bb.9:
	leaq	44(%rbx), %rdi
	callq	_GROUPTASK_ENQUEUE
LBB0_10:
	movq	$0, 16(%r14)
	movl	4(%r14), %edi
	callq	_if_getdrvflags
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.11:
	movl	%r15d, %esi
	shrl	$31, %esi
	addl	%r15d, %esi
	sarl	%esi
	leaq	40(%rbx), %rdi
	movl	40(%rbx), %r8d
	leaq	_iflib_timer(%rip), %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_callout_reset_on               ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	8(%r14), %r15d
	movl	36(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_TXQ_AVAIL
	movl	32(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_device_printf
	movq	%r14, %rdi
	callq	_STATE_LOCK
	movl	4(%r14), %edi
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_if_setdrvflagbits
	movq	_IFC_DO_WATCHDOG@GOTPCREL(%rip), %rax
	movq	_IFC_DO_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
	movq	%r14, %rdi
	callq	_iflib_admin_intr_deferred
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STATE_UNLOCK                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ticks,4,2                      ## @ticks
	.comm	_hz,4,2                         ## @hz
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFLIB_QUEUE_HUNG,8,3           ## @IFLIB_QUEUE_HUNG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Watchdog timeout (TX: %d desc avail: %d pidx: %d) -- resetting\n"

	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_IFC_DO_WATCHDOG,4,2            ## @IFC_DO_WATCHDOG
	.comm	_IFC_DO_RESET,4,2               ## @IFC_DO_RESET
	.comm	_IFCAP_NETMAP,4,2               ## @IFCAP_NETMAP
	.no_dead_strip	_iflib_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iflib_timer
_iflib_timer:                           ; @iflib_timer
	.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	x20, x0
	ldr	x19, [x0, #64]
Lloh0:
	adrp	x8, _ticks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x24, _hz@GOTPAGE
Lloh4:
	ldr	x24, [x24, _hz@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w21, w8, lt
	ldr	w0, [x19, #4]
	bl	_if_getdrvflags
Lloh5:
	adrp	x23, _IFF_DRV_RUNNING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IFF_DRV_RUNNING@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.1:
	ldr	w8, [x20]
	sub	w8, w22, w8
	ldr	w9, [x24]
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	b.lt	LBB0_8
; %bb.2:
	str	w22, [x20]
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_IFDI_TIMER
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x22, _IFLIB_QUEUE_HUNG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _IFLIB_QUEUE_HUNG@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldp	x8, x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
LBB0_5:
	ldr	w0, [x20, #56]
	bl	_ifmp_ring_is_stalled
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x22]
	str	x8, [x20, #8]
LBB0_7:
	ldr	x8, [x20, #24]
	str	x8, [x20, #16]
LBB0_8:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x20, #44
	bl	_GROUPTASK_ENQUEUE
LBB0_10:
	str	xzr, [x19, #16]
	ldr	w0, [x19, #4]
	bl	_if_getdrvflags
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	ldr	w4, [x0, #40]!
Lloh9:
	adrp	x2, _iflib_timer@PAGE
Lloh10:
	add	x2, x2, _iflib_timer@PAGEOFF
	asr	w1, w21, #1
	mov	x3, 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
	b	_callout_reset_on
LBB0_12:
	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
LBB0_13:
	ldr	w21, [x19, #8]
	ldr	w22, [x20, #36]
	mov	x0, x20
	bl	_TXQ_AVAIL
	mov	x3, x0
	ldr	w4, [x20, #32]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_device_printf
	mov	x0, x19
	bl	_STATE_LOCK
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _IFF_DRV_OACTIVE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x23]
	bl	_if_setdrvflagbits
Lloh16:
	adrp	x8, _IFC_DO_WATCHDOG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IFC_DO_WATCHDOG@GOTPAGEOFF]
Lloh18:
	adrp	x9, _IFC_DO_RESET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFC_DO_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x19
	bl	_iflib_admin_intr_deferred
	mov	x0, x19
	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
	b	_STATE_UNLOCK
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ticks,4,2                      ; @ticks
	.comm	_hz,4,2                         ; @hz
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFLIB_QUEUE_HUNG,8,3           ; @IFLIB_QUEUE_HUNG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Watchdog timeout (TX: %d desc avail: %d pidx: %d) -- resetting\n"

	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_IFC_DO_WATCHDOG,4,2            ; @IFC_DO_WATCHDOG
	.comm	_IFC_DO_RESET,4,2               ; @IFC_DO_RESET
	.comm	_IFCAP_NETMAP,4,2               ; @IFCAP_NETMAP
	.no_dead_strip	_iflib_timer
.subsections_via_symbols
