	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CopyCachedPlan                 ## -- Begin function CopyCachedPlan
	.p2align	4, 0x90
_CopyCachedPlan:                        ## @CopyCachedPlan
	.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
	movq	(%rdi), %rax
	movq	_CACHEDPLANSOURCE_MAGIC@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_Assert
	movl	8(%r15), %edi
	callq	_Assert
	cmpl	$0, 12(%r15)
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ALLOCSET_START_SMALL_SIZES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$168, %edi
	callq	_palloc0
	movq	%rax, %rbx
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	160(%r15), %rdi
	callq	_copyObject
	movq	%rax, 160(%rbx)
	movl	156(%r15), %edi
	callq	_pstrdup
	movl	%eax, 156(%rbx)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_MemoryContextSetIdentifier
	movl	152(%r15), %eax
	movl	%eax, 152(%rbx)
	movl	16(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.3:
	shll	$2, %edi
	callq	_palloc
	movq	%rax, 144(%rbx)
	movq	144(%r15), %rsi
	movl	16(%r15), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	callq	_memcpy
	movl	16(%r15), %edi
	jmp	LBB0_5
LBB0_4:
	movq	$0, 144(%rbx)
LBB0_5:
	movl	%edi, 16(%rbx)
	movups	128(%r15), %xmm0
	movups	%xmm0, 128(%rbx)
	movq	120(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	callq	_CreateTupleDescCopy
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, 120(%rbx)
	movq	%r12, 112(%rbx)
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_AllocSetContextCreate
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_MemoryContextSwitchTo
	movq	104(%r15), %rdi
	callq	_copyObject
	movq	%rax, 104(%rbx)
	movq	96(%r15), %rdi
	callq	_copyObject
	movq	%rax, 96(%rbx)
	movq	88(%r15), %rdi
	callq	_copyObject
	movq	%rax, 88(%rbx)
	movq	80(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_CopyOverrideSearchPath
	movq	%rax, 80(%rbx)
LBB0_10:
	movq	%r12, 72(%rbx)
	movl	64(%r15), %eax
	movl	%eax, 64(%rbx)
	movl	60(%r15), %eax
	movl	%eax, 60(%rbx)
	movl	56(%r15), %eax
	movl	%eax, 56(%rbx)
	movq	$0, 48(%rbx)
	movq	$1, 8(%rbx)
	movl	$0, 20(%rbx)
	movl	40(%r15), %eax
	movl	%eax, 40(%rbx)
	movups	24(%r15), %xmm0
	movups	%xmm0, 24(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHEDPLANSOURCE_MAGIC,8,3     ## @CACHEDPLANSOURCE_MAGIC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot copy a one-shot cached plan"

	.comm	_CurrentMemoryContext,8,3       ## @CurrentMemoryContext
L_.str.1:                               ## @.str.1
	.asciz	"CachedPlanSource"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ## @ALLOCSET_START_SMALL_SIZES
L_.str.2:                               ## @.str.2
	.asciz	"CachedPlanQuery"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function CopyCachedPlan
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_CopyCachedPlan
	.p2align	2
_CopyCachedPlan:                        ; @CopyCachedPlan
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _CACHEDPLANSOURCE_MAGIC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CACHEDPLANSOURCE_MAGIC@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x19, #8]
	bl	_Assert
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
Lloh7:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x8]
Lloh10:
	adrp	x23, _ALLOCSET_START_SMALL_SIZES@GOTPAGE
Lloh11:
	ldr	x23, [x23, _ALLOCSET_START_SMALL_SIZES@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x22, x0
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	mov	w0, #168
	bl	_palloc0
	mov	x21, x0
	ldr	x8, [x24]
	str	x8, [x0]
	ldr	x0, [x19, #160]
	bl	_copyObject
	str	x0, [x21, #160]
	ldr	w0, [x19, #156]
	bl	_pstrdup
	mov	x1, x0
	str	w0, [x21, #156]
	mov	x0, x22
	bl	_MemoryContextSetIdentifier
	ldr	w8, [x19, #152]
	str	w8, [x21, #152]
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.3:
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x21, #144]
	ldr	x1, [x19, #144]
	ldr	w8, [x19, #16]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x19, #16]
	b	LBB0_5
LBB0_4:
	str	xzr, [x21, #144]
LBB0_5:
	str	w8, [x21, #16]
	ldr	q0, [x19, #128]
	str	q0, [x21, #128]
	ldr	x0, [x19, #120]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_CreateTupleDescCopy
LBB0_7:
	stp	x22, x0, [x21, #112]
	ldr	w2, [x23]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_AllocSetContextCreate
	mov	x22, x0
	bl	_MemoryContextSwitchTo
	ldr	x0, [x19, #104]
	bl	_copyObject
	str	x0, [x21, #104]
	ldr	x0, [x19, #96]
	bl	_copyObject
	str	x0, [x21, #96]
	ldr	x0, [x19, #88]
	bl	_copyObject
	str	x0, [x21, #88]
	ldr	x0, [x19, #80]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_CopyOverrideSearchPath
	str	x0, [x21, #80]
LBB0_9:
	str	x22, [x21, #72]
	ldr	w8, [x19, #64]
	str	w8, [x21, #64]
	ldr	d0, [x19, #56]
	str	d0, [x21, #56]
	str	xzr, [x21, #48]
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21, #8]
	str	wzr, [x21, #20]
	ldr	w8, [x19, #40]
	str	w8, [x21, #40]
	ldur	q0, [x19, #24]
	stur	q0, [x21, #24]
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdr	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHEDPLANSOURCE_MAGIC,8,3     ; @CACHEDPLANSOURCE_MAGIC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot copy a one-shot cached plan"

	.comm	_CurrentMemoryContext,8,3       ; @CurrentMemoryContext
l_.str.1:                               ; @.str.1
	.asciz	"CachedPlanSource"

	.comm	_ALLOCSET_START_SMALL_SIZES,4,2 ; @ALLOCSET_START_SMALL_SIZES
l_.str.2:                               ; @.str.2
	.asciz	"CachedPlanQuery"

.subsections_via_symbols
