	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_free                     ## -- Begin function event_free
	.p2align	4, 0x90
_event_free:                            ## @event_free
	.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
	movq	_eq_n@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	movq	_events_mem@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_evm_l@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpl	$-1, (%r12,%r15)
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rax)
	xorl	%r12d, %r12d
LBB0_2:
	leaq	(%r12,%r15), %rbx
	movq	_eq@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_eq_l@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	xorl	%edi, %edi
	cmpq	%rbx, (%rax,%rcx,8)
	sete	%dil
	callq	_assert
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_upd_q_st_delete
	movq	_eq_n@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	(%r14), %rax
	movq	(%r13), %rdi
	movq	$0, (%rax,%rdi,8)
	callq	_QINC
	movq	%rbx, %rdi
	callq	_get_event_size
	movq	_type_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r12,%r15), %rdx
	subl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	callq	_get_event_size
	movq	_events_memory@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_get_event_size
	movq	_evm_l@GOTPCREL(%rip), %rcx
	addq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eq_n,4,2                       ## @eq_n
	.comm	_events_mem,8,3                 ## @events_mem
	.comm	_evm_l,8,3                      ## @evm_l
	.comm	_eq,8,3                         ## @eq
	.comm	_eq_l,8,3                       ## @eq_l
	.comm	_type_size,8,3                  ## @type_size
	.comm	_events_memory,4,2              ## @events_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_free                     ; -- Begin function event_free
	.p2align	2
_event_free:                            ; @event_free
	.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
Lloh0:
	adrp	x21, _eq_n@GOTPAGE
Lloh1:
	ldr	x21, [x21, _eq_n@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_assert
Lloh2:
	adrp	x8, _events_mem@GOTPAGE
Lloh3:
	ldr	x8, [x8, _events_mem@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x20, _evm_l@GOTPAGE
Lloh6:
	ldr	x20, [x20, _evm_l@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w10, [x9, x8]
	cmn	w10, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x9, #0
	str	xzr, [x20]
LBB0_2:
Lloh7:
	adrp	x22, _eq@GOTPAGE
Lloh8:
	ldr	x22, [x22, _eq@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh9:
	adrp	x23, _eq_l@GOTPAGE
Lloh10:
	ldr	x23, [x23, _eq_l@GOTPAGEOFF]
	ldr	x11, [x23]
	ldr	x10, [x10, x11, lsl #3]
	add	x19, x9, x8
	cmp	x10, x19
	cset	w0, eq
	bl	_assert
	ldr	x1, [x23]
	mov	x0, x19
	bl	_upd_q_st_delete
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x22]
	ldr	x0, [x23]
	str	xzr, [x8, x0, lsl #3]
	bl	_QINC
	mov	x0, x19
	bl	_get_event_size
Lloh11:
	adrp	x8, _type_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _type_size@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x19]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	sub	w10, w10, w0
	str	w10, [x8, x9]
	mov	x0, x19
	bl	_get_event_size
Lloh14:
	adrp	x8, _events_memory@GOTPAGE
Lloh15:
	ldr	x8, [x8, _events_memory@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, w0
	str	w9, [x8]
	mov	x0, x19
	bl	_get_event_size
	ldr	x8, [x20]
	add	x8, x8, x0
	str	x8, [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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_eq_n,4,2                       ; @eq_n
	.comm	_events_mem,8,3                 ; @events_mem
	.comm	_evm_l,8,3                      ; @evm_l
	.comm	_eq,8,3                         ; @eq
	.comm	_eq_l,8,3                       ; @eq_l
	.comm	_type_size,8,3                  ; @type_size
	.comm	_events_memory,4,2              ; @events_memory
.subsections_via_symbols
