	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vector_insert                  ## -- Begin function Vector_insert
	.p2align	4, 0x90
_Vector_insert:                         ## @Vector_insert
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	callq	_Object_isA
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	callq	_Vector_isConsistent
	movl	%eax, %edi
	callq	_assert
	movl	(%rbx), %eax
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	%rbx, %rdi
	callq	_Vector_checkArraySize
	movslq	(%rbx), %r9
	cmpl	%r15d, %r9d
	jle	LBB0_1
## %bb.2:
	movslq	%r15d, %r10
	movl	%r9d, %esi
	subl	%r15d, %esi
	movq	%r10, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rdx
	andq	$3, %rsi
	je	LBB0_5
## %bb.3:
	movq	%r9, %rax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	leaq	-1(%rax), %rdx
	movq	-8(%rdi,%rax,8), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movq	%rdx, %rax
	decq	%rsi
	jne	LBB0_4
LBB0_5:
	cmpq	$3, %r8
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	-8(%rax,%rdx,8), %rcx
	movq	%rcx, (%rax,%rdx,8)
	movq	8(%rbx), %rax
	movq	-16(%rax,%rdx,8), %rcx
	movq	%rcx, -8(%rax,%rdx,8)
	movq	8(%rbx), %rax
	movq	-24(%rax,%rdx,8), %rcx
	movq	%rcx, -16(%rax,%rdx,8)
	movq	8(%rbx), %rax
	movq	-32(%rax,%rdx,8), %rcx
	movq	%rcx, -24(%rax,%rdx,8)
	leaq	-4(%rdx), %rax
	movq	%rax, %rdx
	cmpq	%r10, %rax
	jg	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movslq	%r15d, %r10
LBB0_7:
	movq	8(%rbx), %rax
	movq	%r14, (%rax,%r10,8)
	incl	%r9d
	movl	%r9d, (%rbx)
	movq	%rbx, %rdi
	callq	_Vector_isConsistent
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_assert                         ## 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_insert                  ; -- Begin function Vector_insert
	.p2align	2
_Vector_insert:                         ; @Vector_insert
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mvn	w8, w1
	lsr	w0, w8, #31
	bl	_assert
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_Object_isA
	bl	_assert
	mov	x0, x19
	bl	_Vector_isConsistent
	bl	_assert
	ldr	w8, [x19]
	cmp	w8, w21
	csel	w21, w8, w21, lt
	mov	x0, x19
	bl	_Vector_checkArraySize
	ldrsw	x8, [x19]
	cmp	w8, w21
	b.le	LBB0_3
; %bb.1:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x9, w21
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #8]
	add	x11, x11, x10, lsl #3
	sub	x12, x10, #1
	ldur	x10, [x11, #-8]
	str	x10, [x11]
	mov	x10, x12
	cmp	x12, x9
	b.gt	LBB0_2
	b	LBB0_4
LBB0_3:
	sxtw	x9, w21
LBB0_4:
	ldr	x10, [x19, #8]
	str	x20, [x10, x9, lsl #3]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_Vector_isConsistent
	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	_assert
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
