	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vector_add                     ## -- Begin function vector_add
	.p2align	4, 0x90
_vector_add:                            ## @vector_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	leal	1(%r15), %eax
	movl	%eax, (%rdi)
	xorl	%edi, %edi
	cmpl	$-1, %r15d
	setne	%dil
	callq	_assert
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	movl	%eax, %edx
	shll	%cl, %edx
	cmpl	%edx, %r15d
	jne	LBB0_4
## %bb.1:
	cmpl	12(%rbx), %eax
	jne	LBB0_3
## %bb.2:
	leal	(%rax,%rax), %ecx
	testl	%eax, %eax
	movl	$1, %r12d
	cmovnel	%ecx, %r12d
	leal	(,%r12,8), %esi
	movq	%r14, %rdi
	callq	_pool_alloc
	movq	%rax, %r15
	movq	16(%rbx), %rsi
	movl	12(%rbx), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	%r15, 16(%rbx)
	movl	%r12d, 12(%rbx)
	movl	8(%rbx), %ecx
LBB0_3:
	movl	24(%rbx), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movq	%r14, %rdi
	callq	_pool_alloc
	movq	16(%rbx), %rcx
	movl	4(%rbx), %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%rbx), %rax
	leal	1(%rdx), %ecx
	movl	%ecx, 4(%rbx)
	movq	(%rax,%rdx,8), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vector_at                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vector_add                     ; -- Begin function vector_add
	.p2align	2
_vector_add:                            ; @vector_add
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
	add	w8, w21, #1
	str	w8, [x0]
	cmn	w21, #1
	cset	w0, ne
	bl	_assert
	ldp	w9, w8, [x19, #4]
	lsl	w10, w9, w8
	cmp	w21, w10
	b.ne	LBB0_4
; %bb.1:
	ldr	w10, [x19, #12]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
	lsl	w8, w9, #1
	cmp	w9, #0
	csinc	w22, w8, wzr, ne
	lsl	w1, w22, #3
	mov	x0, x20
	bl	_pool_alloc
	mov	x21, x0
	ldr	x1, [x19, #16]
	ldr	w8, [x19, #12]
	lsl	w2, w8, #3
	bl	_memcpy
	str	x21, [x19, #16]
	str	w22, [x19, #12]
	ldr	w8, [x19, #8]
LBB0_3:
	ldr	w9, [x19, #24]
	lsl	w1, w9, w8
	mov	x0, x20
	bl	_pool_alloc
	ldr	x8, [x19, #16]
	ldr	w9, [x19, #4]
	lsl	x10, x9, #3
	str	x0, [x8, x10]
	ldr	x8, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #4]
	ldr	x0, [x8, x10]
	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
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	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
	b	_vector_at
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
