	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_callback_finalize_nolock_ ## -- Begin function event_callback_finalize_nolock_
	.p2align	4, 0x90
_event_callback_finalize_nolock_:       ## @event_callback_finalize_nolock_
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_EVLIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_event_callback_to_event
	movq	_EVENT_DEL_NOBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_event_del_nolock_
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_event_callback_cancel_nolock_
LBB0_3:
	movq	_EV_CLOSURE_CB_FINALIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_event_callback_activate_nolock_
	movq	_EVLIST_FINALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_INIT,4,2                ## @EVLIST_INIT
	.comm	_EVENT_DEL_NOBLOCK,4,2          ## @EVENT_DEL_NOBLOCK
	.comm	_EV_CLOSURE_CB_FINALIZE,4,2     ## @EV_CLOSURE_CB_FINALIZE
	.comm	_EVLIST_FINALIZING,4,2          ## @EVLIST_FINALIZING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_callback_finalize_nolock_ ; -- Begin function event_callback_finalize_nolock_
	.p2align	2
_event_callback_finalize_nolock_:       ; @event_callback_finalize_nolock_
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _EVLIST_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVLIST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_event_callback_to_event
Lloh3:
	adrp	x8, _EVENT_DEL_NOBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVENT_DEL_NOBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_event_del_nolock_
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_event_callback_cancel_nolock_
LBB0_3:
Lloh6:
	adrp	x8, _EV_CLOSURE_CB_FINALIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EV_CLOSURE_CB_FINALIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	x21, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_event_callback_activate_nolock_
Lloh9:
	adrp	x8, _EVLIST_FINALIZING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVLIST_FINALIZING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_INIT,4,2                ; @EVLIST_INIT
	.comm	_EVENT_DEL_NOBLOCK,4,2          ; @EVENT_DEL_NOBLOCK
	.comm	_EV_CLOSURE_CB_FINALIZE,4,2     ; @EV_CLOSURE_CB_FINALIZE
	.comm	_EVLIST_FINALIZING,4,2          ; @EVLIST_FINALIZING
.subsections_via_symbols
