	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function time_cb
_time_cb:                               ## @time_cb
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_called@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	incl	%eax
	movl	%eax, (%rcx)
	movq	_NEVENT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leal	(%rdi,%rdi), %ecx
	leal	(%rcx,%rcx,4), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_8
## %bb.1:
	movl	$9, %ebx
	movq	_ev@GOTPCREL(%rip), %r15
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_rand_int
	movq	%rax, %r13
	movq	$0, -48(%rbp)
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_rand_int
	movl	%eax, -56(%rbp)
	testb	$1, %al
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_called@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	(%r12), %eax
	jge	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_evtimer_add
	subl	$1, %ebx
	jae	LBB0_7
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movslq	%r13d, %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_evtimer_del
	subl	$1, %ebx
	jb	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	jmp	LBB0_2
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_called,4,2                     ## @called
	.comm	_NEVENT,4,2                     ## @NEVENT
	.comm	_ev,8,3                         ## @ev
	.no_dead_strip	_time_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function time_cb
_time_cb:                               ; @time_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _called@GOTPAGE
Lloh1:
	ldr	x20, [x20, _called@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh2:
	adrp	x21, _NEVENT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NEVENT@GOTPAGEOFF]
	ldr	w0, [x21]
	add	w9, w0, w0, lsl #2
	cmp	w8, w9, lsl #1
	b.ge	LBB0_7
; %bb.1:
	mov	w22, #9
Lloh4:
	adrp	x23, _ev@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ev@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand_int
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	w0, #50000
	bl	_rand_int
	str	w0, [sp]
	tbnz	w0, #0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	sbfiz	x9, x19, #2, #32
	ldr	w0, [x8, x9]
	mov	x1, sp
	bl	_evtimer_add
	cbnz	w22, LBB0_6
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	sbfiz	x9, x19, #2, #32
	ldr	w0, [x8, x9]
	bl	_evtimer_del
	cbz	w22, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	sub	w22, w22, #1
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_called,4,2                     ; @called
	.comm	_NEVENT,4,2                     ; @NEVENT
	.comm	_ev,8,3                         ; @ev
	.no_dead_strip	_time_cb
.subsections_via_symbols
