	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_signal_closure
_event_signal_closure:                  ## @event_signal_closure
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movzwl	(%rsi), %eax
	movw	%ax, -34(%rbp)
	testw	%ax, %ax
	je	LBB0_2
## %bb.1:
	leaq	-34(%rbp), %rax
	movq	%rax, 8(%r12)
LBB0_2:
	movq	_th_base_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_EVBASE_RELEASE_LOCK
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r12), %edi
	movl	16(%r12), %edx
	movl	20(%r12), %esi
	callq	*32(%r12)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_EVBASE_ACQUIRE_LOCK
	movl	(%r15), %esi
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_EVBASE_RELEASE_LOCK
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	-34(%rbp), %eax
	testw	%ax, %ax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	decw	%ax
	movw	%ax, -34(%rbp)
	movw	%ax, (%r12)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r12)
	jmp	LBB0_6
LBB0_7:
	cmpw	$0, -34(%rbp)
	je	LBB0_9
## %bb.8:
	movq	$0, 8(%r12)
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_th_base_lock,4,2               ## @th_base_lock
	.no_dead_strip	_event_signal_closure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_signal_closure
_event_signal_closure:                  ; @event_signal_closure
	.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, x1
	mov	x20, x0
	ldrh	w8, [x1]
	strh	w8, [sp, #14]
	cbz	w8, LBB0_2
; %bb.1:
	add	x8, sp, #14
	str	x8, [x19, #8]
LBB0_2:
Lloh0:
	adrp	x21, _th_base_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _th_base_lock@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_EVBASE_RELEASE_LOCK
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #32]
	ldp	w1, w0, [x19, #20]
	ldr	w2, [x19, #16]
	blr	x8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_EVBASE_ACQUIRE_LOCK
	ldr	w22, [x20]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_EVBASE_RELEASE_LOCK
	cbnz	w22, LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [sp, #14]
	cbz	w8, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w8, #1
	strh	w8, [sp, #14]
	strh	w8, [x19]
	tst	w8, #0xffff
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19, #8]
	b	LBB0_3
LBB0_7:
	ldrh	w8, [sp, #14]
	cbz	w8, LBB0_9
; %bb.8:
	str	xzr, [x19, #8]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_th_base_lock,4,2               ; @th_base_lock
	.no_dead_strip	_event_signal_closure
.subsections_via_symbols
