	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_begin_cluster        ## -- Begin function tuplesort_begin_cluster
	.p2align	4, 0x90
_tuplesort_begin_cluster:               ## @tuplesort_begin_cluster
	.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	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movl	%ecx, %esi
	movl	%r8d, %edx
	callq	_tuplesort_begin_common
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_BTREE_AM_OID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_Assert
	movl	52(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_IndexRelationGetNumberOfKeyAttributes
	movl	%eax, %r14d
	movl	%eax, (%rbx)
	movq	_CLUSTER_SORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_PARALLEL_SORT
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r15d, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_TRACE_POSTGRESQL_SORT_START
	movq	_comparetup_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_copytup_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_writetup_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_readtup_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$10, 4(%rbx)
	movq	%r13, %rdi
	callq	_BuildIndexInfo
	movq	%rax, 24(%rbx)
	movl	%r14d, 32(%rbx)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	__bt_mkscankey
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_CreateExecutorState
	movl	%eax, 16(%rbx)
	movq	_TTSOpsHeapTuple@GOTPCREL(%rip), %rsi
	movl	%r14d, %edi
	callq	_MakeSingleTupleTableSlot
	movq	%rax, %r14
	movl	16(%rbx), %edi
	callq	_GetPerTupleExprContext
	movq	%r14, (%rax)
LBB0_2:
	movl	(%rbx), %edi
	shll	$2, %edi
	callq	_palloc0
	movq	%rax, 8(%rbx)
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r13
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rax,%r12)
	movl	16(%r13,%r14), %ecx
	movl	%ecx, 20(%rax,%r12)
	movq	_SK_BT_NULLS_FIRST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%r13,%r14), %ecx
	leaq	(%rax,%r12), %rbx
	setne	%dl
	movl	%edx, (%rax,%r12)
	movq	8(%r13,%r14), %rcx
	movq	%rcx, 8(%rax,%r12)
	xorl	%edx, %edx
	cmpq	$1, %r15
	sete	%dl
	movl	%edx, 16(%rax,%r12)
	xorl	%edi, %edi
	testq	%rcx, %rcx
	setne	%dil
	callq	_AssertState
	movq	_SK_BT_DESC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BTGreaterStrategyNumber@GOTPCREL(%rip), %rax
	andl	(%r13,%r14), %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_BTLessStrategyNumber@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_PrepareSortSupportFromIndexRel
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	incq	%r15
	addq	$32, %r12
	addq	$24, %r14
	jmp	LBB0_4
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTREE_AM_OID,8,3               ## @BTREE_AM_OID
	.comm	_CLUSTER_SORT,4,2               ## @CLUSTER_SORT
	.comm	_comparetup_cluster,4,2         ## @comparetup_cluster
	.comm	_copytup_cluster,4,2            ## @copytup_cluster
	.comm	_writetup_cluster,4,2           ## @writetup_cluster
	.comm	_readtup_cluster,4,2            ## @readtup_cluster
	.comm	_TTSOpsHeapTuple,4,2            ## @TTSOpsHeapTuple
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_SK_BT_NULLS_FIRST,4,2          ## @SK_BT_NULLS_FIRST
	.comm	_SK_BT_DESC,4,2                 ## @SK_BT_DESC
	.comm	_BTGreaterStrategyNumber,4,2    ## @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,4,2       ## @BTLessStrategyNumber
	.comm	_LOG,4,2                        ## @LOG
	.comm	_trace_sort,8,3                 ## @trace_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_begin_cluster        ; -- Begin function tuplesort_begin_cluster
	.p2align	2
_tuplesort_begin_cluster:               ; @tuplesort_begin_cluster
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x24, x2
	mov	x20, x1
	mov	x23, x0
	mov	x0, x2
	mov	x1, x3
	mov	x2, x4
	bl	_tuplesort_begin_common
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _BTREE_AM_OID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTREE_AM_OID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #52]
	bl	_MemoryContextSwitchTo
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_IndexRelationGetNumberOfKeyAttributes
	mov	x25, x0
	str	w0, [x19]
Lloh3:
	adrp	x8, _CLUSTER_SORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLUSTER_SORT@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_PARALLEL_SORT
	mov	x5, x0
	mov	x0, x26
	mov	w1, #0
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	bl	_TRACE_POSTGRESQL_SORT_START
Lloh6:
	adrp	x8, _comparetup_cluster@GOTPAGE
Lloh7:
	ldr	x8, [x8, _comparetup_cluster@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _copytup_cluster@GOTPAGE
Lloh10:
	ldr	x9, [x9, _copytup_cluster@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #44]
Lloh12:
	adrp	x8, _writetup_cluster@GOTPAGE
Lloh13:
	ldr	x8, [x8, _writetup_cluster@GOTPAGEOFF]
Lloh14:
	adrp	x9, _readtup_cluster@GOTPAGE
Lloh15:
	ldr	x9, [x9, _readtup_cluster@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
	mov	w8, #10
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_BuildIndexInfo
	str	x0, [x19, #24]
	str	w23, [x19, #32]
	mov	x0, x20
	mov	x1, #0
	bl	__bt_mkscankey
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_CreateExecutorState
	str	w0, [x19, #16]
Lloh18:
	adrp	x1, _TTSOpsHeapTuple@GOTPAGE
Lloh19:
	ldr	x1, [x1, _TTSOpsHeapTuple@GOTPAGEOFF]
	mov	x0, x23
	bl	_MakeSingleTupleTableSlot
	mov	x23, x0
	ldr	w0, [x19, #16]
	bl	_GetPerTupleExprContext
	str	x23, [x0]
LBB0_2:
	ldr	w8, [x19]
	lsl	w0, w8, #2
	bl	_palloc0
	str	x0, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #1
Lloh20:
	adrp	x27, _BTGreaterStrategyNumber@GOTPAGE
Lloh21:
	ldr	x27, [x27, _BTGreaterStrategyNumber@GOTPAGEOFF]
Lloh22:
	adrp	x28, _BTLessStrategyNumber@GOTPAGE
Lloh23:
	ldr	x28, [x28, _BTLessStrategyNumber@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x0, x25
	ldr	x8, [x22]
Lloh24:
	adrp	x9, _CurrentMemoryContext@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CurrentMemoryContext@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	add	x21, x8, x24
	ldr	w8, [x21, #16]
	stp	w8, w9, [x23, #20]
	ldr	w8, [x21]
Lloh27:
	adrp	x9, _SK_BT_NULLS_FIRST@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SK_BT_NULLS_FIRST@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	str	w8, [x23]
	ldr	x8, [x21, #8]
	str	x8, [x23, #8]
	cmp	x26, #1
	cset	w9, eq
	str	w9, [x23, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_AssertState
	ldr	w8, [x21]
Lloh30:
	adrp	x9, _SK_BT_DESC@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SK_BT_DESC@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x28, x27, eq
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_PrepareSortSupportFromIndexRel
	ldrsw	x8, [x19]
	cmp	x26, x8
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x19, #8]
	add	x26, x26, #1
	add	x25, x25, #32
	add	x24, x24, #24
	b	LBB0_4
LBB0_6:
	mov	x0, x22
	bl	_pfree
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BTREE_AM_OID,8,3               ; @BTREE_AM_OID
	.comm	_CLUSTER_SORT,4,2               ; @CLUSTER_SORT
	.comm	_comparetup_cluster,4,2         ; @comparetup_cluster
	.comm	_copytup_cluster,4,2            ; @copytup_cluster
	.comm	_writetup_cluster,4,2           ; @writetup_cluster
	.comm	_readtup_cluster,4,2            ; @readtup_cluster
	.comm	_TTSOpsHeapTuple,4,2            ; @TTSOpsHeapTuple
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_SK_BT_NULLS_FIRST,4,2          ; @SK_BT_NULLS_FIRST
	.comm	_SK_BT_DESC,4,2                 ; @SK_BT_DESC
	.comm	_BTGreaterStrategyNumber,4,2    ; @BTGreaterStrategyNumber
	.comm	_BTLessStrategyNumber,4,2       ; @BTLessStrategyNumber
	.comm	_LOG,4,2                        ; @LOG
	.comm	_trace_sort,8,3                 ; @trace_sort
.subsections_via_symbols
