	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparse_array_add               ## -- Begin function sparse_array_add
	.p2align	4, 0x90
_sparse_array_add:                      ## @sparse_array_add
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-44(%rbp), %rdx
	callq	_sparse_array_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_vector_add
	movq	%rax, %r15
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_vector_add
	movq	%rax, %r15
	xorl	%edi, %edi
	cmpl	$2, 4(%r12)
	setge	%dil
	callq	_assert
	movl	4(%r12), %r14d
	leal	-1(%r14), %eax
	cmpl	-44(%rbp), %eax
	jbe	LBB0_7
## %bb.5:
	addl	$-2, %r14d
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_vector_at
	movq	%rax, %r15
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	leal	-1(%r14), %eax
	movq	%r15, %rbx
	cmpl	-44(%rbp), %r14d
	movl	%eax, %r14d
	ja	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movl	(%r12), %eax
	movl	%eax, 8(%r15)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_vector_add
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"re-adding an existing key\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sparse_array_add               ; -- Begin function sparse_array_add
	.p2align	2
_sparse_array_add:                      ; @sparse_array_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x2, sp, #12
	bl	_sparse_array_lookup
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	x0, #0
	b	LBB0_8
LBB0_3:
	add	x0, x20, #4
	mov	x1, x19
	bl	_vector_add
	mov	x23, x0
	b	LBB0_7
LBB0_4:
	add	x22, x20, #4
	mov	x0, x22
	mov	x1, x19
	bl	_vector_add
	mov	x23, x0
	ldr	w8, [x20, #4]
	cmp	w8, #1
	cset	w0, gt
	bl	_assert
	ldr	w8, [x20, #4]
	sub	w9, w8, #1
	ldr	w10, [sp, #12]
	cmp	w9, w10
	b.ls	LBB0_7
; %bb.5:
	sub	w24, w8, #2
	mov	x25, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_vector_at
	mov	x23, x0
	ldr	q0, [x0]
	str	q0, [x25]
	ldr	w8, [sp, #12]
	sub	w9, w24, #1
	mov	x25, x0
	cmp	w24, w8
	mov	x24, x9
	b.hi	LBB0_6
LBB0_7:
	str	x21, [x23]
	ldr	w8, [x20]
	str	w8, [x23, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_vector_add
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"re-adding an existing key\n"

.subsections_via_symbols
