	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function schedule_alarm
_schedule_alarm:                        ## @schedule_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	_num_active_timeouts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movl	%edi, %ebx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_MemSet
	movq	_active_timeouts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	movl	%ebx, %edi
	callq	_TimestampDifference
	movq	-24(%rbp), %rax
	movl	-12(%rbp), %ecx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.3:
	movl	$1, -12(%rbp)
	movl	$1, %ecx
LBB0_4:
	movq	%rax, -40(%rbp)
	movl	%ecx, -32(%rbp)
	xorl	%eax, %eax
	callq	_enable_alarm
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_setitimer
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_active_timeouts,8,3        ## @num_active_timeouts
	.comm	_active_timeouts,8,3            ## @active_timeouts
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not enable SIGALRM timer: %m"

	.no_dead_strip	_schedule_alarm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function schedule_alarm
_schedule_alarm:                        ; @schedule_alarm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _num_active_timeouts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _num_active_timeouts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_MemSet
Lloh3:
	adrp	x8, _active_timeouts@GOTPAGE
Lloh4:
	ldr	x8, [x8, _active_timeouts@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_TimestampDifference
	ldr	x8, [sp, #8]
	ldr	w9, [sp, #4]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #1
	str	w9, [sp, #4]
LBB0_3:
	str	x8, [sp, #16]
	str	w9, [sp, #24]
	bl	_enable_alarm
Lloh6:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	x2, #0
	bl	_setitimer
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _FATAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_num_active_timeouts,8,3        ; @num_active_timeouts
	.comm	_active_timeouts,8,3            ; @active_timeouts
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not enable SIGALRM timer: %m"

	.no_dead_strip	_schedule_alarm
.subsections_via_symbols
