	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function event_changelist_get_or_construct
_event_changelist_get_or_construct:     ## @event_changelist_get_or_construct
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movslq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	leaq	(%rax,%rcx), %rbx
	addq	$-16, %rbx
	xorl	%edi, %edi
	cmpq	%r15, -16(%rax,%rcx)
	sete	%dil
	callq	_EVUTIL_ASSERT
	jmp	LBB0_7
LBB0_1:
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	8(%rbx), %rax
	setle	%dil
	callq	_EVUTIL_ASSERT
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_event_changelist_grow
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
LBB0_5:
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	16(%rbx), %r13
	cltq
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %r14
	shlq	$4, %r14
	leaq	(%r14,%r13), %rbx
	incl	%eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, (%r13,%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movw	%ax, 8(%r13,%r14)
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_event_changelist_get_or_construct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function event_changelist_get_or_construct
_event_changelist_get_or_construct:     ; @event_changelist_get_or_construct
	.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, x1
	mov	x22, x0
	ldr	w8, [x3]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x22, #16]
	sub	w8, w8, #1
	add	x22, x9, w8, sxtw #4
	ldr	x8, [x22]
	cmp	x8, x19
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	b	LBB0_7
LBB0_2:
	mov	x21, x3
	mov	x20, x2
	ldp	x8, x9, [x22]
	cmp	x8, x9
	cset	w0, le
	bl	_EVUTIL_ASSERT
	ldp	x8, x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x22
	bl	_event_changelist_grow
	tbnz	x0, #63, LBB0_6
; %bb.4:
	ldr	x8, [x22]
LBB0_5:
	add	x9, x8, #1
	str	x9, [x22]
	ldr	x9, [x22, #16]
	lsl	x10, x8, #32
	add	x22, x9, x10, asr #28
	add	w8, w8, #1
	str	w8, [x21]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	x19, [x22]
	strh	w20, [x22, #8]
	b	LBB0_7
LBB0_6:
	mov	x22, #0
LBB0_7:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_event_changelist_get_or_construct
.subsections_via_symbols
