	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compactify_tuples
_compactify_tuples:                     ## @compactify_tuples
	.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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_itemoffcompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %edx
	callq	_qsort
	movl	(%r14), %ebx
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %eax
	shlq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15,%r13), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_PageGetItemId
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15,%r13), %edx
	subl	%edx, %ebx
	movslq	%ebx, %r12
	leaq	(%r14,%r12), %rdi
	movslq	4(%r15,%r13), %rsi
	addq	%r14, %rsi
	callq	_memmove
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	addq	$16, %r13
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	movl	%ebx, 4(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_itemoffcompare,4,2             ## @itemoffcompare
	.no_dead_strip	_compactify_tuples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compactify_tuples
_compactify_tuples:                     ; @compactify_tuples
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _itemoffcompare@GOTPAGE
Lloh1:
	ldr	x8, [x8, _itemoffcompare@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w2, #4
	bl	_qsort
	ldr	w22, [x19]
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w21, w21
	add	x23, x20, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	bl	_PageGetItemId
	mov	x20, x0
	ldp	w2, w8, [x23, #-8]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	sub	w22, w22, w2
	add	x0, x19, w22, sxtw
	add	x1, x19, x8
	bl	_memmove
	str	w22, [x20]
	add	x23, x23, #16
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	str	w22, [x19, #4]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_itemoffcompare,4,2             ; @itemoffcompare
	.no_dead_strip	_compactify_tuples
.subsections_via_symbols
