	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function range_gist_single_sorting_split
_range_gist_single_sorting_split:       ## @range_gist_single_sorting_split
	.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
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	leal	-1(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	-8(,%rbx,8), %edi
	callq	_palloc
	movq	%rax, %r13
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%ebx, %r15d
	jl	LBB0_1
LBB0_5:
	movq	_single_bound_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$8, %edx
	movq	%r12, %r8
	callq	_qsort_arg
	xorps	%xmm0, %xmm0
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, 16(%rax)
	cmpl	$2, %ebx
	jl	LBB0_11
## %bb.6:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %r14d
	shrl	%r12d
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	callq	_PLACE_RIGHT
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r13,%rbx,8), %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %edi
	callq	_DatumGetRangeTypeP
	movq	%rax, %rdi
	movl	%r15d, %esi
	cmpq	%r12, %rbx
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	_PLACE_LEFT
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%rcx, %rdx
	leaq	-52(%rbp), %rcx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-44(%rbp), %r8
	callq	_range_deserialize
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movl	%r15d, %edi
	callq	_OffsetNumberNext
	movl	%eax, %r15d
	cmpl	%ebx, %eax
	jge	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r15d, %r14
	movl	(%rax,%r14,4), %edi
	callq	_DatumGetRangeTypeP
	movl	%r14d, -8(%r13,%r14,8)
	leaq	-4(,%r14,8), %rcx
	addq	%r13, %rcx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	leaq	-52(%rbp), %rdx
	jmp	LBB0_4
LBB0_11:
	xorl	%edi, %edi
	callq	_RangeTypePGetDatum
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	callq	_RangeTypePGetDatum
	movq	%rax, (%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,4,2          ## @FirstOffsetNumber
	.comm	_single_bound_cmp,4,2           ## @single_bound_cmp
	.no_dead_strip	_range_gist_single_sorting_split
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function range_gist_single_sorting_split
_range_gist_single_sorting_split:       ; @range_gist_single_sorting_split
	.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	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
	ldr	w26, [x1]
	sub	w21, w26, #1
	lsl	w0, w21, #3
	bl	_palloc
	mov	x22, x0
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	cmp	w25, w26
	b.lt	LBB0_9
LBB0_1:
Lloh3:
	adrp	x8, _single_bound_cmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _single_bound_cmp@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	w2, #8
	mov	x4, x23
	bl	_qsort_arg
	stp	xzr, xzr, [x19, #16]
	cmp	w26, #2
	b.lt	LBB0_11
; %bb.2:
	mov	x24, #0
	lsr	w25, w21, #1
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_PLACE_RIGHT
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	add	x22, x22, #8
	cmp	x21, x24
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x23, [x22]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_DatumGetRangeTypeP
	mov	x1, x23
	cmp	x24, x25
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_PLACE_LEFT
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x23
	mov	x2, x8
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	bl	_range_deserialize
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x25
	bl	_OffsetNumberNext
	mov	x25, x0
	cmp	w0, w26
	b.ge	LBB0_1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, w25, sxtw #2]
	bl	_DatumGetRangeTypeP
	mov	x1, x0
	add	x8, x22, w25, sxtw #3
	stur	w25, [x8, #-8]
	sub	x8, x8, #4
	cbz	w24, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x2, sp, #12
	add	x4, sp, #8
	mov	x0, x23
	mov	x3, x8
	b	LBB0_8
LBB0_11:
	mov	x0, #0
	bl	_RangeTypePGetDatum
	str	x0, [x19, #8]
	mov	x0, #0
	bl	_RangeTypePGetDatum
	str	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,4,2          ; @FirstOffsetNumber
	.comm	_single_bound_cmp,4,2           ; @single_bound_cmp
	.no_dead_strip	_range_gist_single_sorting_split
.subsections_via_symbols
