	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.1:
	movq	8(%rsi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movq	_event_is_persistent@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_event_is_persistent@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_EV_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	xorl	%eax, %eax
	callq	_event_base_new
	movq	%rax, %rbx
	movq	_timeout_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$-1, %edx
	movl	%r14d, %ecx
	movq	%r15, %r9
	callq	_event_assign
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	callq	_evutil_timerclear
	movl	$2, -32(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_event_add
	movq	_lasttime@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	%rbx, %rdi
	callq	_event_base_dispatch
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-p"

	.comm	_event_is_persistent,4,2        ## @event_is_persistent
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_timeout_cb,4,2                 ## @timeout_cb
	.comm	_lasttime,4,2                   ## @lasttime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
LBB0_2:
	mov	w19, #0
Lloh2:
	adrp	x8, _event_is_persistent@GOTPAGE
Lloh3:
	ldr	x8, [x8, _event_is_persistent@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _event_is_persistent@GOTPAGE
Lloh6:
	ldr	x8, [x8, _event_is_persistent@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
Lloh8:
	adrp	x8, _EV_PERSIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_PERSIST@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
LBB0_4:
	bl	_event_base_new
	mov	x20, x0
Lloh11:
	adrp	x8, _timeout_cb@GOTPAGE
Lloh12:
	ldr	x8, [x8, _timeout_cb@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	add	x0, sp, #8
	add	x5, sp, #8
	mov	x1, x20
	mov	w2, #-1
	mov	x3, x19
	bl	_event_assign
	mov	x0, sp
	bl	_evutil_timerclear
	mov	w8, #2
	str	w8, [sp]
	add	x0, sp, #8
	mov	x1, sp
	bl	_event_add
Lloh14:
	adrp	x0, _lasttime@GOTPAGE
Lloh15:
	ldr	x0, [x0, _lasttime@GOTPAGEOFF]
	mov	x1, #0
	bl	_evutil_gettimeofday
	mov	x0, x20
	bl	_event_base_dispatch
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-p"

	.comm	_event_is_persistent,4,2        ; @event_is_persistent
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_timeout_cb,4,2                 ; @timeout_cb
	.comm	_lasttime,4,2                   ; @lasttime
.subsections_via_symbols
