	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function heap_compare_slots
_heap_compare_slots:                    ## @heap_compare_slots
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	callq	_DatumGetInt32
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_DatumGetInt32
	movq	16(%rbx), %rcx
	movq	(%rcx,%r15,8), %rdi
	movq	(%rcx,%rax,8), %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_TupIsNull
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_TupIsNull
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r14
	movq	8(%rbx), %rbx
	movl	(%rbx,%r15), %r12d
	addq	%r15, %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	leaq	-52(%rbp), %rdx
	callq	_slot_getattr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	leaq	-48(%rbp), %rdx
	callq	_slot_getattr
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	%rbx, %r8
	callq	_ApplySortComparator
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	movq	%r14, %rbx
	jl	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_INVERT_COMPARE_RESULT
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_heap_compare_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function heap_compare_slots
_heap_compare_slots:                    ; @heap_compare_slots
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	bl	_DatumGetInt32
	mov	x21, x0
	mov	x0, x20
	bl	_DatumGetInt32
	ldr	x8, [x19, #16]
	ldr	x20, [x8, x21, lsl #3]
	ldr	x21, [x8, x0, lsl #3]
	mov	x0, x20
	bl	_TupIsNull
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x21
	bl	_TupIsNull
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x22, x8, x25
	ldr	w23, [x22]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x23
	bl	_slot_getattr
	mov	x24, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_slot_getattr
	mov	x2, x0
	ldp	w3, w1, [sp, #8]
	mov	x0, x24
	mov	x4, x22
	bl	_ApplySortComparator
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x25, x25, #4
	cmp	x26, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
	mov	x22, x0
	bl	_INVERT_COMPARE_RESULT
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_heap_compare_slots
.subsections_via_symbols
