	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecEndAgg                     ## -- Begin function ExecEndAgg
	.p2align	4, 0x90
_ExecEndAgg:                            ## @ExecEndAgg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	56(%rdi), %edi
	movl	$1, %esi
	callq	_Max
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	48(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_tuplesort_end
LBB0_2:
	movq	40(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_tuplesort_end
LBB0_4:
	movl	(%r15), %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%eax, %eax
	jle	LBB0_13
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %eax
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	cmpq	%rcx, %r13
	jge	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	32(%r15), %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	incq	%r14
	cmpq	%r14, %r12
	je	LBB0_11
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r13,8), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	callq	_tuplesort_end
	jmp	LBB0_10
LBB0_13:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_16
## %bb.14:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_ReScanExprContext
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_15
LBB0_16:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_ReScanExprContext
LBB0_18:
	leaq	8(%r15), %rdi
	callq	_ExecFreeExprContext
	movl	4(%r15), %edi
	callq	_ExecClearTuple
	movq	%r15, %rdi
	callq	_outerPlanState
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ExecEndNode                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExecEndAgg                     ; -- Begin function ExecEndAgg
	.p2align	2
_ExecEndAgg:                            ; @ExecEndAgg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	w0, [x0, #56]
	mov	w1, #1
	bl	_Max
	mov	x20, x0
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_tuplesort_end
LBB0_2:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_tuplesort_end
LBB0_4:
	ldr	w8, [x19]
	mov	w21, w20
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
	mov	x22, #0
	lsl	x23, x21, #3
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, #0
	ldr	x25, [x19, #32]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x24, x24, #8
	cmp	x23, x24
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, x22, lsl #3]
	ldr	x0, [x8, x24]
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	bl	_tuplesort_end
	b	LBB0_10
LBB0_13:
	cmp	w20, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x20, #0
	lsl	x21, x21, #3
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x20]
	bl	_ReScanExprContext
	add	x20, x20, #8
	cmp	x21, x20
	b.ne	LBB0_15
LBB0_16:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_ReScanExprContext
LBB0_18:
	add	x0, x19, #8
	bl	_ExecFreeExprContext
	ldr	w0, [x19, #4]
	bl	_ExecClearTuple
	mov	x0, x19
	bl	_outerPlanState
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ExecEndNode
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
