	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elem_insert
_elem_insert:                           ## @elem_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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpl	%esi, (%rbx)
	seta	%dil
	callq	_assert
	movl	4(%rbx), %edx
	cmpl	%r15d, %edx
	jbe	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	%r15d, %ecx
	leaq	(%rax,%rcx,4), %rdi
	addq	$4, %rdi
	leaq	(%rax,%rcx,4), %rsi
	movl	%r15d, %eax
	notl	%eax
	addl	%eax, %edx
	shll	$2, %edx
	callq	_memmove
LBB0_2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_elem_set
	movl	4(%rbx), %eax
	cmpl	(%rbx), %eax
	jae	LBB0_4
## %bb.3:
	incl	%eax
	movl	%eax, 4(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_elem_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elem_insert
_elem_insert:                           ; @elem_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
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, hi
	bl	_assert
	ldr	w8, [x19, #4]
	cmp	w8, w21
	b.ls	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	add	w10, w21, #1
	add	x0, x9, w10, uxtw #2
	add	x1, x9, w21, uxtw #2
	mvn	w9, w21
	add	w8, w8, w9
	lsl	w2, w8, #2
	bl	_memmove
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_elem_set
	ldp	w9, w8, [x19]
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.3:
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_4:
	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	_elem_insert
.subsections_via_symbols
