	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_watchdog_event
_mv_watchdog_event:                     ## @mv_watchdog_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	_timer_softc@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_mtx_lock
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.4:
	movq	_WD_INTERVAL@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shrl	$9, %edx
	imulq	$281475, %rdx, %rsi             ## imm = 0x44B83
	shrq	$39, %rsi
	movq	_MAX_WATCHDOG_TICKS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	ja	LBB0_2
## %bb.5:
	movq	_WATCHDOG_TIMER_ARMV5@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mv_set_timer
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	*%rcx
LBB0_7:
	movl	$0, (%r14)
	jmp	LBB0_8
LBB0_1:
	movq	(%r15), %rax
	movq	8(%rax), %rax
LBB0_2:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:
	xorl	%eax, %eax
	callq	*%rcx
LBB0_8:
	movq	(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_timer_softc,8,3                ## @timer_softc
	.comm	_WD_INTERVAL,4,2                ## @WD_INTERVAL
	.comm	_MAX_WATCHDOG_TICKS,4,2         ## @MAX_WATCHDOG_TICKS
	.comm	_WATCHDOG_TIMER_ARMV5,4,2       ## @WATCHDOG_TIMER_ARMV5
	.no_dead_strip	_mv_watchdog_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_watchdog_event
_mv_watchdog_event:                     ; @mv_watchdog_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _timer_softc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _timer_softc@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_mtx_lock
	cbz	w20, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _WD_INTERVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WD_INTERVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w9, w8, w20
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	w10, [x8]
	lsl	w9, w10, w9
	lsr	w9, w9, #9
	mov	w10, #19331
	movk	w10, #4, lsl #16
	umull	x9, w9, w10
	lsr	x1, x9, #39
Lloh5:
	adrp	x9, _MAX_WATCHDOG_TICKS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_WATCHDOG_TICKS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w1, w9
	b.ls	LBB0_5
; %bb.2:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_4
	b	LBB0_8
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_8
LBB0_4:
	blr	x8
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _WATCHDOG_TIMER_ARMV5@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WATCHDOG_TIMER_ARMV5@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_mv_set_timer
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.6:
	blr	x8
LBB0_7:
	str	wzr, [x19]
LBB0_8:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_timer_softc,8,3                ; @timer_softc
	.comm	_WD_INTERVAL,4,2                ; @WD_INTERVAL
	.comm	_MAX_WATCHDOG_TICKS,4,2         ; @MAX_WATCHDOG_TICKS
	.comm	_WATCHDOG_TIMER_ARMV5,4,2       ; @WATCHDOG_TIMER_ARMV5
	.no_dead_strip	_mv_watchdog_event
.subsections_via_symbols
