	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_malloc                   ## -- Begin function event_malloc
	.p2align	4, 0x90
_event_malloc:                          ## @event_malloc
	.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
	movl	%edi, %r15d
	callq	_get_event_size_d
	movq	%rax, %r14
	movq	_events_created@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_events_cnt@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	movq	_events_memory@GOTPCREL(%rip), %r12
	subl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_dl_malloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_dl_get_memory_used
	addl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_assert
	movl	%r15d, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movl	%eax, 4(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_events_created,4,2             ## @events_created
	.comm	_events_cnt,4,2                 ## @events_cnt
	.comm	_events_memory,4,2              ## @events_memory
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_malloc                   ; -- Begin function event_malloc
	.p2align	2
_event_malloc:                          ; @event_malloc
	.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
	bl	_get_event_size_d
	mov	x20, x0
Lloh0:
	adrp	x8, _events_created@GOTPAGE
Lloh1:
	ldr	x8, [x8, _events_created@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _events_cnt@GOTPAGE
Lloh3:
	ldr	x8, [x8, _events_cnt@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_dl_get_memory_used
Lloh4:
	adrp	x21, _events_memory@GOTPAGE
Lloh5:
	ldr	x21, [x21, _events_memory@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w8, w0
	str	w8, [x21]
	mov	x0, x20
	bl	_dl_malloc
	mov	x20, x0
	bl	_dl_get_memory_used
	ldr	w8, [x21]
	add	w8, w8, w0
	str	w8, [x21]
	mov	x0, x20
	bl	_assert
	str	w19, [x20]
	stp	xzr, xzr, [x20, #8]
Lloh6:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_get_utime
	str	w0, [x20, #4]
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_events_created,4,2             ; @events_created
	.comm	_events_cnt,4,2                 ; @events_cnt
	.comm	_events_memory,4,2              ; @events_memory
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
.subsections_via_symbols
