	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuplesort_end                  ## -- Begin function tuplesort_end
	.p2align	4, 0x90
_tuplesort_end:                         ## @tuplesort_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_LogicalTapeSetClose
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	xorl	%esi, %esi
	callq	_TRACE_POSTGRESQL_SORT_DONE
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_GetPerTupleExprContext
	movl	(%rax), %edi
	callq	_ExecDropSingleTupleTableSlot
	movq	16(%rbx), %rdi
	callq	_FreeExecutorState
LBB0_5:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movl	8(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_MemoryContextDelete            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_end                  ; -- Begin function tuplesort_end
	.p2align	2
_tuplesort_end:                         ; @tuplesort_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_LogicalTapeSetClose
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, ne
LBB0_2:
	mov	x1, #0
	bl	_TRACE_POSTGRESQL_SORT_DONE
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_GetPerTupleExprContext
	ldr	w0, [x0]
	bl	_ExecDropSingleTupleTableSlot
	ldr	x0, [x19, #16]
	bl	_FreeExecutorState
LBB0_4:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MemoryContextDelete
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG,4,2                        ; @LOG
	.comm	_trace_sort,8,3                 ; @trace_sort
.subsections_via_symbols
