	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function agg_retrieve_direct
_agg_retrieve_direct:                   ## @agg_retrieve_direct
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	48(%rdi), %rax
	movq	(%rax), %rbx
	movq	24(%rax), %r14
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_Max
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$0, (%r13)
	je	LBB0_2
LBB0_50:
	xorl	%eax, %eax
LBB0_51:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	72(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	80(%r13), %r15
	movq	104(%r13), %r14
	movl	96(%r13), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	88(%r13), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_39 Depth 2
                                        ##     Child Loop BB0_27 Depth 2
	movq	%r15, %rdi
	callq	_ReScanExprContext
	movl	4(%r13), %eax
	leal	1(%rax), %r12d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %eax
	cmovgel	%ecx, %r12d
	testl	%eax, %eax
	cmovsl	%ecx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	64(%r13), %rax
	movq	(%rax,%r15,8), %rdi
	callq	_ReScanExprContext
	incq	%r15
	cmpq	%r15, %rbx
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, 8(%r13)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leal	-1(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r13), %esi
	movl	16(%r13), %eax
	decl	%eax
	cmpl	%eax, %esi
	jge	LBB0_52
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%esi
	movq	%r13, %rdi
	callq	_initialize_phase
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, 4(%r13)
	movq	48(%r13), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_Max
	movl	%eax, %ebx
	movq	48(%r13), %rax
	movq	24(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %eax
	leal	-1(%rbx), %ecx
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r15d, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %eax
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r13), %rdx
	movq	8(%rdx), %rdx
	movl	%eax, %esi
	movl	4(%rdx,%rsi,4), %r15d
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	%rdx, 8(%r14)
	cmpl	$0, 8(%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	movl	%eax, 4(%r13)
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	setl	%dil
	callq	_Assert
	movb	$1, %al
	testl	%r15d, %r15d
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%r13)
	setne	%al
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movq	_AGG_PLAIN@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %eax
	jge	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r13), %rax
	movq	16(%rax), %rax
	leal	-1(%r15), %ecx
	movl	(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_ExecQualAndReset
	testl	%eax, %eax
	je	LBB0_42
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, 4(%r13)
	cmpq	$0, 40(%r13)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_36
LBB0_25:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_initialize_aggregates
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_44
## %bb.26:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_ExecForceStoreHeapTuple
	movq	$0, 40(%r13)
	movq	%r15, (%r14)
	movq	_AGG_MIXED@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r13), %rax
	cmpq	(%r12), %rax
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=2
	cmpl	$1, 12(%r13)
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	%r13, %rdi
	callq	_lookup_hash_entries
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=2
	movq	%r13, %rdi
	callq	_advance_aggregates
	movq	%r14, %rdi
	callq	_ResetExprContext
	movq	%r13, %rdi
	callq	_fetch_input_tuple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	jne	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	%rbx, (%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AGG_PLAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=2
	movq	%r15, 8(%r14)
	movq	48(%r13), %rax
	movq	16(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	8(%rcx), %rcx
	movl	-4(%rax,%rcx,4), %edi
	movq	%r14, %rsi
	callq	_ExecQual
	testl	%eax, %eax
	jne	LBB0_27
## %bb.33:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ExecCopySlotHeapTuple
	movq	%rax, 40(%r13)
	jmp	LBB0_44
LBB0_34:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_43
## %bb.35:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, 8(%r13)
	jmp	LBB0_44
LBB0_36:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_fetch_input_tuple
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TupIsNull
	testq	%rax, %rax
	je	LBB0_47
## %bb.37:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_48
## %bb.38:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, 8(%r13)
	movq	48(%r13), %rax
	movq	8(%rax), %rcx
	movslq	4(%r13), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_39:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=2
	incq	%rax
	movl	%eax, 4(%r13)
	cmpl	%edx, %eax
	jl	LBB0_39
LBB0_41:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edx, %eax
	jl	LBB0_25
	jmp	LBB0_46
LBB0_42:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_43:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r13)
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	%rax, %r15
LBB0_45:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	movslq	4(%r13), %rbx
	movq	(%r15), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_prepare_projection_slot
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_select_current_set
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_finalize_aggregates
	movq	%r13, %rdi
	callq	_project_aggregates
	testq	%rax, %rax
	jne	LBB0_51
LBB0_46:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_3
	jmp	LBB0_50
LBB0_47:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_ExecCopySlotHeapTuple
	movq	%rax, 40(%r13)
	jmp	LBB0_25
LBB0_48:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AGG_PLAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
	jmp	LBB0_50
LBB0_52:
	movq	24(%r13), %rax
	movq	_AGG_MIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_54
## %bb.53:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_initialize_phase
	movl	$1, 32(%r13)
	movq	56(%r13), %rsi
	movl	4(%rsi), %edi
	callq	_ResetTupleHashIterator
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_select_current_set
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_agg_retrieve_hash_table        ## TAILCALL
LBB0_54:
	movl	$1, (%r13)
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_AGG_MIXED,8,3                  ## @AGG_MIXED
	.comm	_AGG_PLAIN,8,3                  ## @AGG_PLAIN
	.no_dead_strip	_agg_retrieve_direct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function agg_retrieve_direct
_agg_retrieve_direct:                   ; @agg_retrieve_direct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x23, [x8, #24]
	ldr	x20, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_Max
	ldr	w8, [x19]
	cbz	w8, LBB0_3
LBB0_1:
	mov	x0, #0
LBB0_2:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	mov	x26, x0
	str	x20, [sp]                       ; 8-byte Folded Spill
	ldr	x21, [x19, #104]
	ldr	w8, [x19, #96]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x9, [x19, #88]
	ldp	x24, x8, [x19, #72]
	stp	x9, x8, [sp, #16]               ; 16-byte Folded Spill
	movi	d8, #0x000000ffffffff
Lloh0:
	adrp	x22, _AGG_PLAIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AGG_PLAIN@GOTPAGEOFF]
Lloh2:
	adrp	x20, _AGG_MIXED@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AGG_MIXED@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_24 Depth 2
	mov	x25, x22
	mov	x22, x20
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_ReScanExprContext
	ldr	w8, [x19, #4]
	cmp	w8, w26
	mov	w9, #-1
	ccmp	w8, w9, #4, lt
	csinc	w27, w26, w8, le
	cmp	w27, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	lsl	x20, x27, #3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #64]
	ldr	x0, [x8, x28]
	bl	_ReScanExprContext
	add	x28, x28, #8
	cmp	x20, x28
	b.ne	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	sub	w9, w26, #1
	cmp	w8, w9
	mov	x20, x22
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x19, #12]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_47
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w8, #1
	mov	x0, x19
	bl	_initialize_phase
	stur	d8, [x19, #4]
	ldr	x8, [x19, #48]
	ldr	x0, [x8]
	mov	w1, #1
	bl	_Max
	mov	x26, x0
	ldr	x8, [x19, #48]
	ldr	x23, [x8, #24]
	mov	x27, x0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x22
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	sub	w9, w26, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x25
	mov	w28, #0
	tbnz	w8, #31, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #48]
	ldr	x10, [x10, #8]
	add	w11, w8, #1
	ldr	w28, [x10, w11, uxtw #2]
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	str	x10, [x21, #8]
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x19, #4]
	cmp	w8, w26
	cset	w0, lt
	bl	_Assert
	cmp	w28, #0
	b.le	LBB0_31
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_Assert
	b	LBB0_43
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x23]
	ldr	x11, [x22]
	cmp	x10, x11
	ccmn	w8, #1, #4, ne
	ccmp	w8, w9, #0, ne
	ccmp	w28, #1, #8, lt
	b.lt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #16]
	sub	w9, w28, #1
	ldr	w0, [x8, w9, uxtw #2]
	mov	x1, x21
	bl	_ExecQualAndReset
	cbz	w0, LBB0_40
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x19, #4]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_34
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x27
	bl	_initialize_aggregates
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_42
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x24
	mov	w2, #1
	bl	_ExecForceStoreHeapTuple
	str	xzr, [x19, #40]
	str	x24, [x21]
LBB0_24:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.ne	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	bl	_lookup_hash_entries
LBB0_27:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	bl	_advance_aggregates
	mov	x0, x21
	bl	_ResetExprContext
	mov	x0, x19
	bl	_fetch_input_tuple
	mov	x27, x0
	bl	_TupIsNull
	cbnz	x0, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_24 Depth=2
	str	x27, [x21]
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=2
	str	x24, [x21, #8]
	ldr	x8, [x19, #48]
	ldr	x8, [x8, #16]
	ldrsw	x9, [x23, #8]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
	mov	x1, x21
	bl	_ExecQual
	cbnz	w0, LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_ExecCopySlotHeapTuple
	str	x0, [x19, #40]
	b	LBB0_42
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, ne
	bl	_Assert
	b	LBB0_43
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, #1
	b.lt	LBB0_41
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_42
LBB0_34:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_fetch_input_tuple
	mov	x28, x0
	bl	_TupIsNull
	cbz	x0, LBB0_45
; %bb.35:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, #1
	b.lt	LBB0_46
; %bb.36:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	x8, [x19, #48]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x19, #4]
LBB0_37:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, x8, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=2
	add	x8, x8, #1
	str	w8, [x19, #4]
	cmp	w8, w26
	b.lt	LBB0_37
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w26
	b.lt	LBB0_22
	b	LBB0_44
LBB0_40:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	b	LBB0_17
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x19]
LBB0_42:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	x24, [x8]
LBB0_43:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	mvn	w8, w8
	lsr	w0, w8, #31
	bl	_Assert
	ldrsw	x27, [x19, #4]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x27
	bl	_prepare_projection_slot
	mov	x0, x19
	mov	x1, x27
	mov	w2, #0
	bl	_select_current_set
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x8, x27, lsl #2]
	mov	x0, x19
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_finalize_aggregates
	mov	x0, x19
	bl	_project_aggregates
	cbnz	x0, LBB0_2
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_4
	b	LBB0_1
LBB0_45:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	bl	_ExecCopySlotHeapTuple
	str	x0, [x19, #40]
	b	LBB0_22
LBB0_46:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_22
	b	LBB0_1
LBB0_47:
	ldr	x8, [x19, #24]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_49
; %bb.48:
	mov	x0, x19
	mov	w1, #0
	bl	_initialize_phase
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	x1, [x19, #56]
	ldr	w0, [x1, #4]
	bl	_ResetTupleHashIterator
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_select_current_set
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_agg_retrieve_hash_table
LBB0_49:
	mov	x0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AGG_MIXED,8,3                  ; @AGG_MIXED
	.comm	_AGG_PLAIN,8,3                  ; @AGG_PLAIN
	.no_dead_strip	_agg_retrieve_direct
.subsections_via_symbols
