	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finalize_partialaggregate
_finalize_partialaggregate:             ## @finalize_partialaggregate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	(%rsi), %r12
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shlq	$5, %r12
	movl	24(%r15,%r12), %edi
	callq	_OidIsValid
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, 16(%r15,%r12)
	movl	(%r14), %esi
	je	LBB0_2
## %bb.3:
	testl	%esi, %esi
	je	LBB0_4
## %bb.11:
	movq	$0, (%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_6:
	movq	8(%r14), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx)
	movq	%r14, %rbx
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
LBB0_5:
	movq	8(%r15,%r12), %rbx
	movq	8(%r14), %rdi
	movl	(%r15,%r12), %edx
	callq	_MakeExpandedObjectReadOnly
	movq	8(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movl	(%r14), %eax
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_FunctionCallInvoke
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_7:
	movl	(%rbx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	orl	12(%r13), %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_10
## %bb.8:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	%rax, %rdi
	callq	_DatumGetPointer
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_MemoryContextContains
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	movl	8(%r13), %edx
	movl	12(%r13), %esi
	callq	_datumCopy
	movq	%rax, (%r14)
LBB0_10:
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.no_dead_strip	_finalize_partialaggregate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finalize_partialaggregate
_finalize_partialaggregate:             ; @finalize_partialaggregate
	.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	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	ldr	x24, [x1]
	ldp	x8, x25, [x0]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	add	x26, x25, x24, lsl #5
	ldr	w0, [x26, #24]
	bl	_OidIsValid
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x26, #16]
	ldr	w1, [x23]
	cbz	x8, LBB0_5
; %bb.2:
	cbz	w1, LBB0_5
; %bb.3:
	str	xzr, [x19]
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_9
LBB0_4:
	ldr	x0, [x23, #8]
	str	x0, [x19]
	mov	x24, x23
	b	LBB0_6
LBB0_5:
	add	x8, x25, x24, lsl #5
	ldr	x24, [x8, #8]
	ldr	x0, [x23, #8]
	ldr	w2, [x8]
	bl	_MakeExpandedObjectReadOnly
	ldr	x8, [x24, #8]
	ldr	w9, [x23]
	stp	w9, w0, [x8]
	mov	x0, x24
	bl	_FunctionCallInvoke
	str	x0, [x19]
LBB0_6:
	ldr	w8, [x24]
	str	w8, [x22]
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	cbnz	w8, LBB0_9
; %bb.7:
Lloh0:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_DatumGetPointer
	mov	x1, x0
	mov	x0, x22
	bl	_MemoryContextContains
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
	ldp	w2, w1, [x21, #8]
	bl	_datumCopy
	str	x0, [x19]
LBB0_9:
	mov	x0, x20
	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	_MemoryContextSwitchTo
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.no_dead_strip	_finalize_partialaggregate
.subsections_via_symbols
