	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timer_thread
_timer_thread:                          ## @timer_thread
	.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, %r13
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_lock
	movl	24(%r13), %r12d
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	xorl	%eax, %eax
	callq	_timespec_now
	movl	%r12d, %edi
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %esi
	callq	_timespec_subtract
	movl	%eax, -48(%rbp)
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%eax, %edi
	callq	_timespec_positive
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	callq	_unlock
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nanosleep
	movq	%r14, %rdi
	callq	_lock
	movl	24(%r13), %ebx
	xorl	%eax, %eax
	callq	_timespec_now
	movl	%ebx, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	28(%r13), %edi
	callq	*32(%r13)
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	callq	_timespec_positive
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %esi
	movl	24(%r13), %edi
	movl	%edi, 20(%r13)
	callq	_timespec_add
	movl	%eax, %r12d
	movl	%eax, 24(%r13)
	jmp	LBB0_1
LBB0_9:
	movl	$0, (%r13)
	cmpq	$0, 8(%r13)
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_unlock
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_timer_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timer_thread
_timer_thread:                          ; @timer_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x20, x0, #4
	b	LBB0_8
LBB0_1:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_timespec_now
	mov	x1, x0
	mov	x0, x21
	bl	_timespec_subtract
	str	w0, [sp, #8]
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=2
	mov	w0, w0
	bl	_timespec_positive
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=2
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=2
	ldr	x8, [x19, #32]
	ldr	w0, [x19, #28]
	blr	x8
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=2
	ldr	w0, [x19, #16]
	bl	_timespec_positive
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=2
	ldr	w0, [x19, #24]
	str	w0, [x19, #20]
	ldr	w1, [x19, #16]
	bl	_timespec_add
	mov	x21, x0
	str	w0, [x19, #24]
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_unlock
	add	x0, sp, #8
	mov	x1, #0
	bl	_nanosleep
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_1 Depth 2
	mov	x0, x20
	bl	_lock
	ldr	w21, [x19, #24]
	b	LBB0_1
LBB0_9:
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_free
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_unlock
LBB0_12:
	mov	x0, #0
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_timer_thread
.subsections_via_symbols
