	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_events_subthread
_register_events_subthread:             ## @register_events_subthread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -36(%rbp)
	movl	$100, %edi
	callq	_SLEEP_MS
	movq	_time_events@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_event_active
	movl	$100, %edi
	callq	_SLEEP_MS
	movq	(%r15), %rdi
	addq	$4, %rdi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_event_active
	movl	$100, %edi
	callq	_SLEEP_MS
	movl	$100000, -40(%rbp)              ## imm = 0x186A0
	movq	(%r15), %rdi
	addq	$8, %rdi
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_event_add
	movl	$150000, -40(%rbp)              ## imm = 0x249F0
	movq	(%r15), %rdi
	addq	$12, %rdi
	movq	%rbx, %rsi
	callq	_event_add
	movl	$200, %edi
	callq	_SLEEP_MS
	movq	(%r15), %rdi
	addq	$16, %rdi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_event_active
	xorl	%eax, %eax
	callq	_THREAD_RETURN
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_time_events,8,3                ## @time_events
	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.no_dead_strip	_register_events_subthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_events_subthread
_register_events_subthread:             ; @register_events_subthread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	stur	xzr, [sp, #4]
	mov	w0, #100
	bl	_SLEEP_MS
Lloh0:
	adrp	x19, _time_events@GOTPAGE
Lloh1:
	ldr	x19, [x19, _time_events@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _EV_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _EV_TIMEOUT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #1
	bl	_event_active
	mov	w0, #100
	bl	_SLEEP_MS
	ldr	x8, [x19]
	add	x0, x8, #4
	ldr	w1, [x20]
	mov	w2, #1
	bl	_event_active
	mov	w0, #100
	bl	_SLEEP_MS
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [sp]
	ldr	x8, [x19]
	add	x0, x8, #8
	mov	x1, sp
	bl	_event_add
	mov	w8, #18928
	movk	w8, #2, lsl #16
	str	w8, [sp]
	ldr	x8, [x19]
	add	x0, x8, #12
	mov	x1, sp
	bl	_event_add
	mov	w0, #200
	bl	_SLEEP_MS
	ldr	x8, [x19]
	add	x0, x8, #16
	ldr	w1, [x20]
	mov	w2, #1
	bl	_event_active
	bl	_THREAD_RETURN
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_time_events,8,3                ; @time_events
	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.no_dead_strip	_register_events_subthread
.subsections_via_symbols
