	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_simplesignal_impl
_test_simplesignal_impl:                ## @test_simplesignal_impl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_signal_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rcx
	callq	_evsignal_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evsignal_add
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_evsignal_del
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evsignal_add
LBB0_2:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	$0, -32(%rbp)
	movl	$100000, -40(%rbp)              ## imm = 0x186A0
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_setitimer
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_event_dispatch
LBB0_4:
	leaq	-24(%rbp), %rdi
	callq	_evsignal_del
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_6:
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_signal_cb,4,2                  ## @signal_cb
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
	.comm	_test_ok,8,3                    ## @test_ok
	.no_dead_strip	_test_simplesignal_impl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_simplesignal_impl
_test_simplesignal_impl:                ; @test_simplesignal_impl
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _signal_cb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _signal_cb@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #24
	add	x3, sp, #24
	bl	_evsignal_set
	add	x0, sp, #24
	mov	x1, #0
	bl	_evsignal_add
	cbz	w19, LBB0_2
; %bb.1:
	add	x0, sp, #24
	bl	_evsignal_del
	add	x0, sp, #24
	mov	x1, #0
	bl	_evsignal_add
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	xzr, [sp, #16]
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, #0
	bl	_setitimer
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_event_dispatch
LBB0_4:
	add	x0, sp, #24
	bl	_evsignal_del
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _test_ok@GOTPAGE
Lloh10:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
Lloh11:
	str	xzr, [x8]
LBB0_6:
	bl	_cleanup_test
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_signal_cb,4,2                  ; @signal_cb
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
	.comm	_test_ok,8,3                    ; @test_ok
	.no_dead_strip	_test_simplesignal_impl
.subsections_via_symbols
