	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _bt_sort_array_elements
__bt_sort_array_elements:               ## @_bt_sort_array_elements
	.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
	movl	%r8d, %r14d
	cmpl	$2, %r8d
	jl	LBB0_7
## %bb.1:
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	(%rsi), %r13
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movslq	8(%r12), %rax
	movq	-8(%rcx,%rax,8), %r13
	jmp	LBB0_4
LBB0_2:
	movslq	8(%r12), %rax
LBB0_4:
	decq	%rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_BTORDER_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rsi
	movq	%r13, %rdx
	callq	_get_opfamily_proc
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_RegProcedureIsValid
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BTORDER_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%rbx), %rax
	movslq	8(%r12), %rcx
	movl	-4(%rax,%rcx,4), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rcx
	movq	%r13, %r8
	callq	_elog
LBB0_6:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_fmgr_info
	movl	12(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -56(%rbp)
	movq	__bt_compare_array_elements@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-56(%rbp), %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	movq	%r15, %r8
	callq	_qsort_arg
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$4, %edx
	movq	%r15, %r8
	callq	_qunique_arg
	movl	%eax, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_BTORDER_PROC,4,2               ## @BTORDER_PROC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"missing support function %d(%u,%u) in opfamily %u"

	.comm	__bt_compare_array_elements,4,2 ## @_bt_compare_array_elements
	.no_dead_strip	__bt_sort_array_elements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _bt_sort_array_elements
__bt_sort_array_elements:               ; @_bt_sort_array_elements
	.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, x4
	cmp	w4, #2
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x25, [x0]
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x25]
	ldrsw	x8, [x22, #8]
	sub	x8, x8, #1
	ldr	x23, [x9, x8, lsl #3]
	b	LBB0_4
LBB0_3:
	ldrsw	x8, [x22, #8]
	sub	x8, x8, #1
LBB0_4:
	ldr	x9, [x25, #8]
	ldr	w0, [x9, x8, lsl #2]
Lloh3:
	adrp	x26, _BTORDER_PROC@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BTORDER_PROC@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x1, x23
	mov	x2, x23
	bl	_get_opfamily_proc
	mov	x24, x0
	bl	_RegProcedureIsValid
	cbnz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x26]
	ldr	x8, [x25, #8]
	ldrsw	x9, [x22, #8]
	add	x8, x8, x9, lsl #2
	ldur	w5, [x8, #-4]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	mov	x4, x23
	bl	_elog
LBB0_6:
	mov	x8, sp
	add	x1, x8, #8
	mov	x0, x24
	bl	_fmgr_info
	ldr	w8, [x22, #12]
	stp	w21, w8, [sp]
Lloh10:
	adrp	x21, __bt_compare_array_elements@GOTPAGE
Lloh11:
	ldr	x21, [x21, __bt_compare_array_elements@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x4, sp
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_qsort_arg
	ldr	w3, [x21]
	mov	x4, sp
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_qunique_arg
	mov	x19, x0
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_BTORDER_PROC,4,2               ; @BTORDER_PROC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"missing support function %d(%u,%u) in opfamily %u"

	.comm	__bt_compare_array_elements,4,2 ; @_bt_compare_array_elements
	.no_dead_strip	__bt_sort_array_elements
.subsections_via_symbols
