	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_aggregate
_initialize_aggregate:                  ## @initialize_aggregate
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	$0, (%rsi)
	jle	LBB0_7
## %bb.1:
	movq	72(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_tuplesort_end
LBB0_3:
	movl	68(%rbx), %edi
	cmpl	$1, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	callq	_TupleDescAttr
	movl	(%rax), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	movq	40(%rbx), %rax
	movq	48(%rbx), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	xorl	%r9d, %r9d
	pushq	$0
	callq	_tuplesort_begin_datum
	addq	$16, %rsp
	jmp	LBB0_6
LBB0_5:
	movl	64(%rbx), %edx
	movq	56(%rbx), %rcx
	movq	48(%rbx), %r8
	movq	(%rbx), %rsi
	movq	40(%rbx), %r9
	movq	_work_mem@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_tuplesort_begin_heap
	addq	$32, %rsp
LBB0_6:
	movq	72(%rbx), %rcx
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_7:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	32(%rbx), %ecx
	movl	%ecx, 16(%r14)
	jmp	LBB0_10
LBB0_9:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movl	32(%rbx), %edi
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	callq	_datumCopy
	movl	%eax, 16(%r14)
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movq	16(%rbx), %rax
LBB0_10:
	movq	%rax, 8(%r14)
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_work_mem,4,2                   ## @work_mem
	.no_dead_strip	_initialize_aggregate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_aggregate
_initialize_aggregate:                  ; @initialize_aggregate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x8, [x20, #72]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_tuplesort_end
LBB0_3:
	ldr	w8, [x20, #8]
	ldr	w0, [x20, #68]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	mov	w1, #0
	bl	_TupleDescAttr
	ldr	w0, [x0]
	ldr	x8, [x20, #56]
	ldr	w1, [x8]
	ldp	x9, x8, [x20, #40]
	ldr	w2, [x8]
	ldr	w3, [x9]
Lloh0:
	adrp	x8, _work_mem@GOTPAGE
Lloh1:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x5, #0
	mov	w6, #0
	bl	_tuplesort_begin_datum
	b	LBB0_6
LBB0_5:
	ldr	x1, [x20]
	ldr	w2, [x20, #64]
	ldp	x4, x3, [x20, #48]
	ldr	x5, [x20, #40]
Lloh3:
	adrp	x8, _work_mem@GOTPAGE
Lloh4:
	ldr	x8, [x8, _work_mem@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	x7, #0
	bl	_tuplesort_begin_heap
LBB0_6:
	ldr	x8, [x20, #72]
	ldr	x9, [x21]
	str	x0, [x8, x9, lsl #3]
LBB0_7:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w9, [x20, #32]
	str	w9, [x19, #16]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldp	w1, w0, [x20, #28]
	ldr	w2, [x20, #24]
	bl	_datumCopy
	str	w0, [x19, #16]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	ldr	x8, [x20, #16]
LBB0_10:
	stp	x8, x8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_work_mem,4,2                   ; @work_mem
	.no_dead_strip	_initialize_aggregate
.subsections_via_symbols
