	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert                         ## -- Begin function insert
	.p2align	4, 0x90
_insert:                                ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%edx, %rax
	movl	%esi, -4(%rdi,%rax,4)
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %r14
	leal	-1(%r12), %r15d
	addl	$-2, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ebx
	shrl	$31, %ebx
	addl	%r12d, %ebx
	sarl	%ebx
	movslq	%ebx, %rax
	movl	(%r14,%rax,4), %edi
	movl	%r15d, %eax
	movl	(%r14,%rax,4), %esi
	callq	_compare_crecid
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_swap_entry
	leal	-1(%rbx), %eax
	movl	%ebx, %r15d
	cmpl	$-2, %r12d
	movl	%eax, %r12d
	jg	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_insert                         ; -- Begin function insert
	.p2align	2
_insert:                                ; @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
	subs	w20, w2, #1
	str	w1, [x0, w20, sxtw #2]
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	sub	w22, w2, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #0
	cinc	w8, w22, lt
	asr	w21, w8, #1
	ldr	w0, [x19, w21, sxtw #2]
	ldr	w1, [x19, w20, uxtw #2]
	bl	_compare_crecid
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_swap_entry
	sub	w8, w21, #1
	mov	x20, x21
	cmn	w22, #2
	mov	x22, x8
	b.gt	LBB0_2
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
.subsections_via_symbols
