	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function veth_timed_reset
_veth_timed_reset:                      ## @veth_timed_reset
	.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
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%rbx)
	jle	LBB0_7
## %bb.1:
	movq	16(%rbx), %rax
	movq	8(%rbx), %rcx
	addq	%rax, %rcx
	movq	_jiffies@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_6
## %bb.2:
	movq	_VETH_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%rbx)
	movq	%rbx, %rdi
	callq	_veth_kick_statemachine
	movq	(%rbx), %rsi
	movq	16(%rbx), %rax
	movl	32(%rbx), %ecx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_5
LBB0_6:
	addq	%rax, %rsi
	addq	$28, %rbx
	movq	%rbx, %rdi
	callq	_mod_timer
	jmp	LBB0_7
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_veth_error
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_VETH_STATE_RESET,4,2           ## @VETH_STATE_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d packets not acked by LPAR %d within %d seconds, resetting.\n"

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_veth_timed_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function veth_timed_reset
_veth_timed_reset:                      ; @veth_timed_reset
	.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	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	ldp	x10, x8, [x20, #8]
Lloh0:
	adrp	x9, _jiffies@GOTPAGE
Lloh1:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x10, x8, x10
	cmp	x10, x9
	b.hs	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _VETH_STATE_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VETH_STATE_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #36]
	orr	w8, w9, w8
	str	w8, [x20, #36]
	mov	x0, x20
	bl	_veth_kick_statemachine
	ldr	x1, [x20]
	ldr	w2, [x20, #32]
	ldr	x8, [x20, #16]
Lloh6:
	adrp	x9, _HZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	udiv	x3, x8, x9
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_veth_error
	b	LBB0_4
LBB0_3:
	add	x1, x9, x8
	add	x0, x20, #28
	bl	_mod_timer
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_VETH_STATE_RESET,4,2           ; @VETH_STATE_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d packets not acked by LPAR %d within %d seconds, resetting.\n"

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_veth_timed_reset
.subsections_via_symbols
