	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PrepareSortSupportFromIndexRel ## -- Begin function PrepareSortSupportFromIndexRel
	.p2align	4, 0x90
_PrepareSortSupportFromIndexRel:        ## @PrepareSortSupportFromIndexRel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	movslq	(%rdx), %rdx
	movl	-4(%rcx,%rdx,4), %r14d
	movl	-4(%rax,%rdx,4), %r15d
	xorl	%edi, %edi
	cmpq	$0, 8(%r13)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movq	_BTREE_AM_OID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	_BTGreaterStrategyNumber@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	%r12, %rax
	je	LBB0_5
## %bb.3:
	movq	_BTLessStrategyNumber@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_elog
	movq	(%rbx), %rax
LBB0_5:
	xorl	%ecx, %ecx
	cmpq	%r12, %rax
	sete	%cl
	movl	%ecx, 4(%r13)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FinishSortSupportFunction      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_AM_OID,8,3               ## @BTREE_AM_OID
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected non-btree AM: %u"

	.comm	_BTGreaterStrategyNumber,8,3    ## @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,8,3       ## @BTLessStrategyNumber
L_.str.1:                               ## @.str.1
	.asciz	"unexpected sort support strategy: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PrepareSortSupportFromIndexRel ; -- Begin function PrepareSortSupportFromIndexRel
	.p2align	2
_PrepareSortSupportFromIndexRel:        ; @PrepareSortSupportFromIndexRel
	.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	x20, x1
	mov	x23, x0
	ldrsw	x8, [x2]
	lsl	x8, x8, #2
	sub	x8, x8, #4
	ldp	x10, x9, [x0, #8]
	ldr	w22, [x9, x8]
	ldr	w21, [x10, x8]
	ldr	x8, [x2, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x23]
	ldr	x2, [x8]
Lloh0:
	adrp	x8, _BTREE_AM_OID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTREE_AM_OID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _ERROR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ERROR@GOTPAGEOFF]
	cmp	x2, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh7:
	adrp	x24, _BTGreaterStrategyNumber@GOTPAGE
Lloh8:
	ldr	x24, [x24, _BTGreaterStrategyNumber@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh9:
	adrp	x9, _BTLessStrategyNumber@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BTLessStrategyNumber@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_elog
	ldr	x8, [x24]
LBB0_4:
	cmp	x8, x20
	cset	w8, eq
	str	w8, [x19, #4]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	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	_FinishSortSupportFunction
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_AM_OID,8,3               ; @BTREE_AM_OID
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected non-btree AM: %u"

	.comm	_BTGreaterStrategyNumber,8,3    ; @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,8,3       ; @BTLessStrategyNumber
l_.str.1:                               ; @.str.1
	.asciz	"unexpected sort support strategy: %d"

.subsections_via_symbols
