	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deliver_alarm
_deliver_alarm:                         ## @deliver_alarm
	.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
	xorl	%eax, %eax
	callq	_os_nsecs
	movq	%rax, %rcx
	movq	_UM_NSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UM_HZ@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movl	%eax, %ebx
	movq	_last_tick@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, %rcx
	movq	%rcx, %r15
	cmovbq	%rax, %r15
	testq	%rax, %rax
	cmoveq	%rcx, %r15
	jne	LBB0_2
## %bb.1:
	movslq	%ebx, %rcx
	movq	%r15, %rax
	subq	%rcx, %rax
	movq	%rax, (%r14)
LBB0_2:
	movl	%r15d, %ecx
	subl	%eax, %ecx
	movq	_skew@GOTPCREL(%rip), %r12
	addl	(%r12), %ecx
	movl	%ecx, (%r12)
	cmpl	%ebx, %ecx
	jl	LBB0_5
## %bb.3:
	movq	_SIGVTALRM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	xorl	%esi, %esi
	callq	_alarm_handler
	movl	(%r12), %eax
	subl	%ebx, %eax
	movl	%eax, (%r12)
	cmpl	%ebx, %eax
	jge	LBB0_4
LBB0_5:
	movq	%r15, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UM_NSEC_PER_SEC,4,2            ## @UM_NSEC_PER_SEC
	.comm	_UM_HZ,4,2                      ## @UM_HZ
	.comm	_last_tick,8,3                  ## @last_tick
	.comm	_skew,4,2                       ## @skew
	.comm	_SIGVTALRM,4,2                  ## @SIGVTALRM
	.no_dead_strip	_deliver_alarm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deliver_alarm
_deliver_alarm:                         ; @deliver_alarm
	.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
	bl	_os_nsecs
Lloh0:
	adrp	x8, _UM_NSEC_PER_SEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UM_NSEC_PER_SEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _UM_HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UM_HZ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w20, w8, w9
Lloh6:
	adrp	x19, _last_tick@GOTPAGE
Lloh7:
	ldr	x19, [x19, _last_tick@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	ccmp	x8, #0, #4, lo
	csel	x21, x8, x0, ne
	cbnz	x8, LBB0_2
; %bb.1:
	sub	x8, x21, w20, sxtw
	str	x8, [x19]
LBB0_2:
Lloh8:
	adrp	x22, _skew@GOTPAGE
Lloh9:
	ldr	x22, [x22, _skew@GOTPAGEOFF]
	ldr	w9, [x22]
	sub	w8, w21, w8
	add	w8, w9, w8
	str	w8, [x22]
	cmp	w8, w20
	b.lt	LBB0_5
; %bb.3:
Lloh10:
	adrp	x23, _SIGVTALRM@GOTPAGE
Lloh11:
	ldr	x23, [x23, _SIGVTALRM@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, #0
	bl	_alarm_handler
	ldr	w8, [x22]
	sub	w8, w8, w20
	cmp	w8, w20
	str	w8, [x22]
	b.ge	LBB0_4
LBB0_5:
	str	x21, [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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_UM_NSEC_PER_SEC,4,2            ; @UM_NSEC_PER_SEC
	.comm	_UM_HZ,4,2                      ; @UM_HZ
	.comm	_last_tick,8,3                  ; @last_tick
	.comm	_skew,4,2                       ; @skew
	.comm	_SIGVTALRM,4,2                  ; @SIGVTALRM
	.no_dead_strip	_deliver_alarm
.subsections_via_symbols
