	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PersistHoldablePortal          ## -- Begin function PersistHoldablePortal
	.p2align	4, 0x90
_PersistHoldablePortal:                 ## @PersistHoldablePortal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	56(%rdi), %r15
	movq	_InvalidSubTransactionId@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setne	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 80(%rbx)
	sete	%dil
	callq	_Assert
	movq	48(%rbx), %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %r14
	movl	72(%rbx), %edi
	callq	_CreateTupleDescCopy
	movl	%eax, 72(%rbx)
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_MarkPortalActive
	movq	_ActivePortal@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PortalContext@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_PG_TRY
	movq	%rbx, (%r13)
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r12)
LBB0_2:
	movq	16(%rbx), %rdi
	movq	%rdi, (%r14)
	callq	_MemoryContextSwitchTo
	movl	8(%r15), %edi
	callq	_PushActiveSnapshot
	movq	%r15, %rdi
	callq	_ExecutorRewind
	movq	_DestTuplestore@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CreateDestReceiver
	movq	%rax, (%r15)
	movq	32(%rbx), %rsi
	movq	48(%rbx), %rdx
	movq	%rax, %rdi
	movl	$1, %ecx
	callq	_SetTuplestoreDestReceiverParams
	movq	_ForwardScanDirection@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ExecutorRun
	movq	(%r15), %rdi
	callq	*(%rdi)
	movq	$0, (%r15)
	movq	$0, 56(%rbx)
	movq	%r15, %rdi
	callq	_ExecutorFinish
	movq	%r15, %rdi
	callq	_ExecutorEnd
	movq	%r15, %rdi
	callq	_FreeQueryDesc
	movq	48(%rbx), %rdi
	callq	_MemoryContextSwitchTo
	cmpq	$0, 40(%rbx)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	movl	$1000000, %esi                  ## imm = 0xF4240
	movl	$1, %edx
	callq	_tuplestore_skiptuples
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movq	32(%rbx), %rdi
	callq	_tuplestore_rescan
	movq	32(%rbx), %rdi
	movl	8(%rbx), %esi
	movl	$1, %edx
	callq	_tuplestore_skiptuples
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_6:
	xorl	%eax, %eax
	callq	_PG_CATCH
	movq	%rbx, %rdi
	callq	_MarkPortalFailed
	movq	_ActivePortal@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, (%r12)
	movq	_PortalContext@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, (%rax)
	xorl	%eax, %eax
	callq	_PG_RE_THROW
	xorl	%eax, %eax
	callq	_PG_END_TRY
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	movq	_PORTAL_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ActivePortal@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	movq	%r14, (%r12)
	movq	_PortalContext@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	xorl	%eax, %eax
	callq	_PopActiveSnapshot
	movq	16(%rbx), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextDeleteChildren    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidSubTransactionId,8,3    ## @InvalidSubTransactionId
	.comm	_ActivePortal,8,3               ## @ActivePortal
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_PortalContext,8,3              ## @PortalContext
	.comm	_DestTuplestore,4,2             ## @DestTuplestore
	.comm	_ForwardScanDirection,4,2       ## @ForwardScanDirection
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected end of tuple stream"

	.comm	_PORTAL_READY,4,2               ## @PORTAL_READY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PersistHoldablePortal          ; -- Begin function PersistHoldablePortal
	.p2align	2
_PersistHoldablePortal:                 ; @PersistHoldablePortal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x21, [x0, #56]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _InvalidSubTransactionId@GOTPAGE
Lloh1:
	ldr	x9, [x9, _InvalidSubTransactionId@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_Assert
	cmp	x21, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19, #80]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #48]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	w0, [x19, #72]
	bl	_CreateTupleDescCopy
	str	w0, [x19, #72]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x0, x19
	bl	_MarkPortalActive
Lloh3:
	adrp	x22, _ActivePortal@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ActivePortal@GOTPAGEOFF]
	ldr	x23, [x22]
Lloh5:
	adrp	x24, _CurrentResourceOwner@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CurrentResourceOwner@GOTPAGEOFF]
	ldr	x25, [x24]
Lloh7:
	adrp	x26, _PortalContext@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PortalContext@GOTPAGEOFF]
	ldr	x27, [x26]
	bl	_PG_TRY
	str	x19, [x22]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [x24]
LBB0_2:
	ldr	x0, [x19, #16]
	str	x0, [x26]
	bl	_MemoryContextSwitchTo
	ldr	w0, [x21, #8]
	bl	_PushActiveSnapshot
	mov	x0, x21
	bl	_ExecutorRewind
Lloh9:
	adrp	x8, _DestTuplestore@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DestTuplestore@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_CreateDestReceiver
	str	x0, [x21]
	ldr	x1, [x19, #32]
	ldr	x2, [x19, #48]
	mov	w3, #1
	bl	_SetTuplestoreDestReceiverParams
Lloh12:
	adrp	x8, _ForwardScanDirection@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ForwardScanDirection@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_ExecutorRun
	ldr	x0, [x21]
	ldr	x8, [x0]
	blr	x8
	str	xzr, [x21]
	str	xzr, [x19, #56]
	mov	x0, x21
	bl	_ExecutorFinish
	mov	x0, x21
	bl	_ExecutorEnd
	mov	x0, x21
	bl	_FreeQueryDesc
	ldr	x0, [x19, #48]
	bl	_MemoryContextSwitchTo
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	mov	w1, #16960
	movk	w1, #15, lsl #16
	mov	w2, #1
	bl	_tuplestore_skiptuples
	cbnz	x0, LBB0_3
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19, #32]
	bl	_tuplestore_rescan
	ldr	x0, [x19, #32]
	ldr	w1, [x19, #8]
	mov	w2, #1
	bl	_tuplestore_skiptuples
	cbnz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_6:
	bl	_PG_CATCH
	mov	x0, x19
	bl	_MarkPortalFailed
	str	x23, [x22]
	str	x25, [x24]
	str	x27, [x26]
	bl	_PG_RE_THROW
	bl	_PG_END_TRY
	mov	x0, x20
	bl	_MemoryContextSwitchTo
Lloh20:
	adrp	x8, _PORTAL_READY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORTAL_READY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	x23, [x22]
	str	x25, [x24]
	str	x27, [x26]
	bl	_PopActiveSnapshot
	ldr	x0, [x19, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_MemoryContextDeleteChildren
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidSubTransactionId,8,3    ; @InvalidSubTransactionId
	.comm	_ActivePortal,8,3               ; @ActivePortal
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_PortalContext,8,3              ; @PortalContext
	.comm	_DestTuplestore,4,2             ; @DestTuplestore
	.comm	_ForwardScanDirection,4,2       ; @ForwardScanDirection
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected end of tuple stream"

	.comm	_PORTAL_READY,4,2               ; @PORTAL_READY
.subsections_via_symbols
