	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comparetup_heap
_comparetup_heap:                       ## @comparetup_heap
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdx), %rbx
	movl	(%rdi), %esi
	movl	16(%rdi), %edi
	movl	(%r15), %ecx
	movl	16(%r15), %edx
	movq	%rbx, %r8
	callq	_ApplySortComparator
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	8(%r13), %rax
	movslq	(%rax), %rcx
	movq	_MINIMAL_TUPLE_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rdx, %rcx
	movq	%rcx, -88(%rbp)
	subq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	8(%r15), %rax
	movslq	(%rax), %rcx
	addq	%rdx, %rcx
	movq	%rcx, -72(%rbp)
	subq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %r12d
	leaq	-88(%rbp), %rdi
	leaq	-52(%rbp), %rcx
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_heap_getattr
	movl	%eax, %r13d
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %rcx
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_heap_getattr
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	%r13d, %edi
	movl	%eax, %edx
	movq	%rbx, %r8
	callq	_ApplySortAbbrevFullComparator
	testq	%rax, %rax
	jne	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	cmpl	$2, (%r14)
	jl	LBB0_9
## %bb.4:
	addq	$16, %rbx
	movl	$1, %r12d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r13d
	leaq	-88(%rbp), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	leaq	-52(%rbp), %rcx
	callq	_heap_getattr
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	-72(%rbp), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	leaq	-48(%rbp), %rcx
	callq	_heap_getattr
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	%rbx, %r8
	callq	_ApplySortComparator
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	addq	$16, %rbx
	cmpl	(%r14), %r12d
	jl	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax def $rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ## @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_comparetup_heap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comparetup_heap
_comparetup_heap:                       ; @comparetup_heap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x22, x0
	ldr	x21, [x2, #8]
	ldr	w0, [x0, #16]
	ldr	w1, [x22]
	ldr	w2, [x20, #16]
	ldr	w3, [x20]
	mov	x4, x21
	bl	_ApplySortComparator
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x22, #8]
	ldrsw	x9, [x8]
Lloh0:
	adrp	x10, _MINIMAL_TUPLE_OFFSET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MINIMAL_TUPLE_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x9, x10, x9
	sub	x8, x8, x10
	stp	x9, x8, [sp, #32]
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8]
	add	x9, x10, x9
	sub	x8, x8, x10
	stp	x9, x8, [sp, #16]
	ldr	w20, [x19, #4]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w22, [x21]
	add	x0, sp, #32
	add	x3, sp, #12
	mov	x1, x22
	mov	x2, x20
	bl	_heap_getattr
	mov	x23, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_heap_getattr
	mov	x2, x0
	ldp	w3, w1, [sp, #8]
	mov	x0, x23
	mov	x4, x21
	bl	_ApplySortAbbrevFullComparator
	cbz	x0, LBB0_4
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.5:
	add	x21, x21, #16
	mov	w24, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x21]
	add	x0, sp, #32
	add	x3, sp, #12
	mov	x1, x22
	mov	x2, x20
	bl	_heap_getattr
	mov	x23, x0
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_heap_getattr
	mov	x2, x0
	ldp	w3, w1, [sp, #8]
	mov	x0, x23
	mov	x4, x21
	bl	_ApplySortComparator
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	w8, [x19]
	add	x21, x21, #16
	cmp	w24, w8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MINIMAL_TUPLE_OFFSET,8,3       ; @MINIMAL_TUPLE_OFFSET
	.no_dead_strip	_comparetup_heap
.subsections_via_symbols
