	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_base_cancel_single_callback_
_event_base_cancel_single_callback_:    ## @event_base_cancel_single_callback_
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	_EVLIST_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_3
## %bb.1:
	movq	%r12, %rdi
	callq	_event_callback_to_event
	movq	_EVLIST_INTERNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_EVENT_DEL_EVEN_IF_FINALIZING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_event_del_
	movl	$1, %r14d
	jmp	LBB0_4
LBB0_3:
	movq	%rdi, %rbx
	movq	_th_base_lock@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_EVBASE_ACQUIRE_LOCK
	movl	$1, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_event_callback_cancel_nolock_
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_EVBASE_RELEASE_LOCK
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.5:
	movq	_EVLIST_FINALIZING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_11
## %bb.6:
	movl	4(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_7
## %bb.9:
	movq	%r12, %rdi
	callq	_event_callback_to_event
	movq	%rax, %rbx
	movl	4(%rax), %esi
	movq	%rax, %rdi
	callq	*8(%rax)
	cmpl	$128, 4(%r12)
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_mm_free
	jmp	LBB0_11
LBB0_7:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	*16(%r12)
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_INIT,4,2                ## @EVLIST_INIT
	.comm	_EVLIST_INTERNAL,4,2            ## @EVLIST_INTERNAL
	.comm	_EVENT_DEL_EVEN_IF_FINALIZING,4,2 ## @EVENT_DEL_EVEN_IF_FINALIZING
	.comm	_th_base_lock,4,2               ## @th_base_lock
	.comm	_EVLIST_FINALIZING,4,2          ## @EVLIST_FINALIZING
	.no_dead_strip	_event_base_cancel_single_callback_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_base_cancel_single_callback_
_event_base_cancel_single_callback_:    ; @event_base_cancel_single_callback_
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _EVLIST_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVLIST_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_event_callback_to_event
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _EVLIST_INTERNAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVLIST_INTERNAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w20, #0
	cbnz	w21, LBB0_5
	b	LBB0_11
LBB0_3:
	mov	x22, x0
Lloh6:
	adrp	x23, _th_base_lock@GOTPAGE
Lloh7:
	ldr	x23, [x23, _th_base_lock@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_EVBASE_ACQUIRE_LOCK
	mov	w20, #1
	mov	x0, x22
	mov	x1, x19
	mov	w2, #1
	bl	_event_callback_cancel_nolock_
	ldr	w1, [x23]
	mov	x0, x22
	bl	_EVBASE_RELEASE_LOCK
	cbnz	w21, LBB0_5
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _EVENT_DEL_EVEN_IF_FINALIZING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVENT_DEL_EVEN_IF_FINALIZING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_event_del_
	mov	w20, #1
	cbz	w21, LBB0_11
LBB0_5:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _EVLIST_FINALIZING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EVLIST_FINALIZING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	ldr	w8, [x19, #4]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_event_callback_to_event
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w1, [x0, #4]
	blr	x8
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_mm_free
	b	LBB0_11
LBB0_9:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	w1, [x19, #8]
	mov	x0, x19
	blr	x8
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_INIT,4,2                ; @EVLIST_INIT
	.comm	_EVLIST_INTERNAL,4,2            ; @EVLIST_INTERNAL
	.comm	_EVENT_DEL_EVEN_IF_FINALIZING,4,2 ; @EVENT_DEL_EVEN_IF_FINALIZING
	.comm	_th_base_lock,4,2               ; @th_base_lock
	.comm	_EVLIST_FINALIZING,4,2          ; @EVLIST_FINALIZING
	.no_dead_strip	_event_base_cancel_single_callback_
.subsections_via_symbols
