	.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:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_get_event_size
	movq	_events_memory@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
	movq	_eq_total@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dl_free                        ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_events_memory,8,3              ## @events_memory
	.comm	_eq_total,4,2                   ## @eq_total
.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:
	cbz	x0, LBB0_2
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_get_event_size
	mov	x1, x0
Lloh0:
	adrp	x8, _events_memory@GOTPAGE
Lloh1:
	ldr	x8, [x8, _events_memory@GOTPAGEOFF]
	ldr	x9, [x8]
	sub	x9, x9, x0
Lloh2:
	adrp	x10, _eq_total@GOTPAGE
Lloh3:
	ldr	x10, [x10, _eq_total@GOTPAGEOFF]
	str	x9, [x8]
	ldr	w8, [x10]
	sub	w8, w8, #1
	str	w8, [x10]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dl_free
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_events_memory,8,3              ; @events_memory
	.comm	_eq_total,4,2                   ; @eq_total
.subsections_via_symbols
