	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v_event_append
_v_event_append:                        ## @v_event_append
	.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, %r14
	movq	(%rsi), %r8
	movq	_E_STRING@GOTPCREL(%rip), %r12
	movq	(%r12), %r9
	movl	$1, %r13d
	cmpq	%r9, %r8
	jne	LBB0_2
## %bb.1:
	movslq	8(%r15), %r13
LBB0_2:
	movq	(%r14), %rbx
	movq	24(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	subq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	%rax, %r13
	jbe	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movl	$64, %esi
	callq	_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_v_event_grow
	movq	24(%rbx), %rdx
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	movq	(%r15), %r8
	movq	(%r12), %r9
LBB0_5:
	leaq	(%rdi,%rdi,4), %rax
	leaq	(%rdx,%rax,8), %rax
	leaq	(%rsi,%rsi,4), %rcx
	leaq	(%rax,%rcx,8), %r12
	addq	%r13, %rsi
	movq	%rsi, 16(%rbx)
	cmpq	%r9, %r8
	jne	LBB0_9
## %bb.6:
	testq	%r13, %r13
	je	LBB0_10
## %bb.7:
	movq	32(%r15), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_E_CHARACTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movl	(%r15,%rbx,4), %esi
	movl	%esi, 24(%r12)
	movq	%r14, %rdi
	callq	_KEY_VAL
	movl	%eax, 28(%r12)
	movq	$0, 16(%r12)
	incq	%rbx
	addq	$40, %r12
	cmpq	%rbx, %r13
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	32(%r15), %rax
	movq	%rax, 32(%r12)
	movups	(%r15), %xmm0
	movups	16(%r15), %xmm1
	movups	%xmm1, 16(%r12)
	movups	%xmm0, (%r12)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_STRING,8,3                   ## @E_STRING
	.comm	_E_CHARACTER,8,3                ## @E_CHARACTER
	.no_dead_strip	_v_event_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v_event_append
_v_event_append:                        ; @v_event_append
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x23, _E_STRING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E_STRING@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldrsw	x20, [x21, #8]
	b	LBB0_3
LBB0_2:
	mov	w20, #1
LBB0_3:
	ldr	x22, [x19]
	ldr	x10, [x22, #24]
	cbz	x10, LBB0_5
; %bb.4:
	ldp	x13, x12, [x22]
	ldr	x11, [x22, #16]
	add	x14, x12, x11
	sub	x13, x13, x14
	cmp	x20, x13
	b.ls	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w1, #64
	bl	_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_v_event_grow
	ldp	x11, x10, [x22, #16]
	ldr	x12, [x22, #8]
	ldr	x8, [x21]
	ldr	x9, [x23]
LBB0_6:
	mov	w13, #40
	madd	x10, x12, x13, x10
	madd	x23, x11, x13, x10
	add	x10, x11, x20
	str	x10, [x22, #16]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	cbz	x20, LBB0_11
; %bb.8:
	ldr	x21, [x21, #32]
Lloh2:
	adrp	x22, _E_CHARACTER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _E_CHARACTER@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x20, x20, #1
	ldr	x8, [x22]
	str	x8, [x23]
	ldr	w1, [x21], #4
	str	w1, [x23, #24]
	mov	x0, x19
	bl	_KEY_VAL
	str	w0, [x23, #28]
	str	xzr, [x23, #16]
	add	x23, x23, #40
	cbnz	x20, LBB0_9
	b	LBB0_11
LBB0_10:
	ldp	q0, q1, [x21]
	ldr	x8, [x21, #32]
	str	x8, [x23, #32]
	stp	q0, q1, [x23]
LBB0_11:
	mov	w0, #0
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_E_STRING,8,3                   ; @E_STRING
	.comm	_E_CHARACTER,8,3                ; @E_CHARACTER
	.no_dead_strip	_v_event_append
.subsections_via_symbols
