	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_ordered_aggregate_single
_process_ordered_aggregate_single:      ## @process_ordered_aggregate_single
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	movq	$0, -80(%rbp)
	movq	32(%rsi), %r15
	xorl	%edi, %edi
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	cmpl	$2, %eax
	setl	%dil
	callq	_Assert
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_tuplesort_performsort
	movq	(%r15), %r12
	leaq	16(%r12), %r13
	addq	$24, %r12
	movq	8(%rbx), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	-80(%rbp), %r8
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_tuplesort_getdatum
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	24(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_advance_transition_function
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	8(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	movq	%r12, %rcx
	leaq	-80(%rbp), %r8
	callq	_tuplesort_getdatum
	movb	$1, %r15b
	testq	%rax, %rax
	je	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-88(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_MemoryContextReset
	movl	%ebx, %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	cmpl	$0, -84(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r15b
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_advance_transition_function
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	-80(%rbp), %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%rbx), %esi
	movq	(%r13), %rcx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_FunctionCall2Coll
	movl	%eax, %edi
	callq	_DatumGetBool
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	jmp	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_advance_transition_function
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 16(%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
	jmp	LBB0_17
LBB0_19:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_22
## %bb.20:
	cmpl	$0, 16(%rbx)
	jne	LBB0_22
## %bb.21:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_DatumGetPointer
	movl	%eax, %edi
	callq	_pfree
LBB0_22:
	movq	8(%rbx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_tuplesort_end
	movq	8(%rbx), %rax
	movq	(%r14), %rcx
	movq	$0, (%rax,%rcx,8)
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_ordered_aggregate_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_ordered_aggregate_single
_process_ordered_aggregate_single:      ; @process_ordered_aggregate_single
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w22, [x8]
	ldr	w8, [x1]
	str	xzr, [sp, #24]
	ldr	x21, [x1, #32]
	stp	w2, w8, [sp, #16]               ; 8-byte Folded Spill
	cmp	w8, #2
	cset	w0, lt
	bl	_Assert
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	bl	_tuplesort_performsort
	ldr	x8, [x21]
	add	x23, x8, #16
	add	x24, x8, #24
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	add	x4, sp, #24
	mov	w1, #1
	mov	x2, x23
	mov	x3, x24
	bl	_tuplesort_getdatum
	cbz	x0, LBB0_22
; %bb.1:
	mov	x26, #0
	mov	w28, #0
	mov	x21, #0
	add	x8, x20, #24
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w25, #1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_advance_transition_function
	cbz	w25, LBB0_17
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x23]
	ldr	x21, [sp, #24]
	ldr	w25, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x27
	bl	_MemoryContextSwitchTo
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	mov	w28, #1
	add	x4, sp, #24
	mov	w1, #1
	mov	x2, x23
	mov	x3, x24
	bl	_tuplesort_getdatum
	cbz	x0, LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_MemoryContextReset
	mov	x0, x22
	bl	_MemoryContextSwitchTo
	mov	x27, x0
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbz	w28, #0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cbz	w25, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_advance_transition_function
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	cmp	x21, x8
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x20, #20]
	ldr	x3, [x23]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x26
	bl	_FunctionCall2Coll
	bl	_DatumGetBool
	cbz	x0, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cbnz	w8, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23]
	bl	_DatumGetPointer
	bl	_pfree
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_advance_transition_function
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	bl	_DatumGetPointer
	bl	_pfree
	b	LBB0_3
LBB0_19:
	cbnz	w25, LBB0_22
; %bb.20:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_22
; %bb.21:
	mov	x0, x26
	bl	_DatumGetPointer
	bl	_pfree
LBB0_22:
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	bl	_tuplesort_end
	ldr	x8, [x20, #8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_ordered_aggregate_single
.subsections_via_symbols
