	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_del                      ## -- Begin function event_del
	.p2align	4, 0x90
_event_del:                             ## @event_del
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	32(%rdi), %rdi
	callq	_event_debug
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	(%r15), %r14
	movq	8(%r15), %r12
	movq	_EVLIST_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_assert
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	$0, (%rax)
LBB0_5:
	movl	(%rbx), %eax
	movq	_EVLIST_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_event_queue_remove
	movl	(%rbx), %eax
LBB0_7:
	movq	_EVLIST_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_event_queue_remove
	movl	(%rbx), %eax
LBB0_9:
	movq	_EVLIST_INSERTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	jne	LBB0_13
## %bb.10:
	movq	_EVLIST_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_11
LBB0_13:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_event_queue_remove
	movq	(%r12), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_ALL,4,2                 ## @EVLIST_ALL
	.comm	_EVLIST_TIMEOUT,4,2             ## @EVLIST_TIMEOUT
	.comm	_EVLIST_ACTIVE,4,2              ## @EVLIST_ACTIVE
	.comm	_EVLIST_INSERTED,4,2            ## @EVLIST_INSERTED
	.comm	_EVLIST_SIGNAL,4,2              ## @EVLIST_SIGNAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_del                      ; -- Begin function event_del
	.p2align	2
_event_del:                             ; @event_del
	.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	x19, x0
	ldrsw	x0, [x0, #32]
	bl	_event_debug
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_11
; %bb.1:
	ldp	x20, x22, [x21]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _EVLIST_ALL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVLIST_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	str	xzr, [x8]
LBB0_4:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _EVLIST_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVLIST_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_event_queue_remove
	ldr	w8, [x19]
LBB0_6:
Lloh6:
	adrp	x9, _EVLIST_ACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EVLIST_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	bl	_event_queue_remove
	ldr	w8, [x19]
LBB0_8:
Lloh9:
	adrp	x9, _EVLIST_INSERTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EVLIST_INSERTED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	tst	w2, w8
	b.ne	LBB0_10
; %bb.9:
Lloh12:
	adrp	x9, _EVLIST_SIGNAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EVLIST_SIGNAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x21
	mov	x1, x19
	bl	_event_queue_remove
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, 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
	br	x2
LBB0_11:
	mov	w0, #-1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_ALL,4,2                 ; @EVLIST_ALL
	.comm	_EVLIST_TIMEOUT,4,2             ; @EVLIST_TIMEOUT
	.comm	_EVLIST_ACTIVE,4,2              ; @EVLIST_ACTIVE
	.comm	_EVLIST_INSERTED,4,2            ; @EVLIST_INSERTED
	.comm	_EVLIST_SIGNAL,4,2              ; @EVLIST_SIGNAL
.subsections_via_symbols
