	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete                         ## -- Begin function delete
	.p2align	4, 0x90
_delete:                                ## @delete
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movslq	%esi, %rax
	movl	-4(%rdi,%rax,4), %eax
	movl	%eax, (%rdi)
	cmpl	$3, %esi
	jl	LBB0_10
## %bb.1:
	movq	%rdi, %r15
	movq	%rsi, %rax
	leal	-1(%rsi), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	addl	$-2, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movl	$1, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r13d, %rbx
	movl	(%r15,%rbx,4), %edi
	addl	$2, %r14d
	movslq	%r14d, %r12
	movl	(%r15,%r12,4), %esi
	callq	_compare_crecid
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%r15,%rcx,4), %edi
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%r12,4), %esi
	callq	_compare_crecid
	movl	%r14d, %r13d
	testq	%rax, %rax
	jg	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%rbx,4), %esi
	callq	_compare_crecid
	testq	%rax, %rax
	jle	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ebx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_swap_entry
	leal	(%rbx,%rbx), %r14d
	leal	(%rbx,%rbx), %r13d
	incl	%r13d
	movl	%ebx, %eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	-60(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_2
	jmp	LBB0_10
LBB0_3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movl	(%r15,%rax,4), %edi
	movslq	-56(%rbp), %rax                 ## 4-byte Folded Reload
	movl	(%r15,%rax,4), %esi
	callq	_compare_crecid
	testq	%rax, %rax
	jle	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_swap_entry                     ## TAILCALL
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_delete                         ; -- Begin function delete
	.p2align	2
_delete:                                ; @delete
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x9, w1
	sub	x23, x9, #1
	ldr	w8, [x0, x23, lsl #2]
	str	w8, [x0]
	cmp	w1, #3
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	w8, #0
	mov	w21, #0
	sub	x20, x9, #2
	mov	w24, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w24
	ldr	w1, [x19, x8, lsl #2]
	bl	_compare_crecid
	cmp	x0, #0
	b.le	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x24
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_swap_entry
	lsl	w8, w24, #1
	mov	w24, #1
	bfi	w24, w22, #1, #31
	mov	x21, x22
	cmp	w24, w23
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, w24, sxtw #2]
	add	w22, w8, #2
	ldr	w1, [x19, w22, sxtw #2]
	bl	_compare_crecid
	mov	x8, x0
	ldr	w0, [x19, w21, sxtw #2]
	tbnz	x8, #63, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w22
	ldr	w1, [x19, x8, lsl #2]
	bl	_compare_crecid
	mov	x24, x22
	cmp	x0, #1
	b.ge	LBB0_3
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, w21, sxtw #2]
	ldr	w1, [x19, x20, lsl #2]
	bl	_compare_crecid
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_swap_entry
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
